Hi Inosh,

I did the same thing for ES. Implement a java class called eventPublsiher
(wrapper in ES level) as a singleton class. Instantiate AsyncDataPublisher
in the getInstance Method of the class. The objective is to share one
AsyncDataPublisher instance through out the ES instance In the ES publisher
class has a method called publishEvents. From jaggery pages, when event
occurs, calls publishEvents method and send events to BAM. publishEvents
method synchronized using locks to avoid events data messing when sending
events by multiple jag pages .

Thanks



On Fri, Oct 10, 2014 at 1:14 PM, Inosh Perera <[email protected]> wrote:

> Hi Gihan,
> Thanks. That clarifies it.
>
> Regards,
> Inosh
>
>
>
> On Fri, Oct 10, 2014 at 12:35 PM, Gihan Anuruddha <[email protected]> wrote:
>
>> Hi Inosh,
>>
>> Yes, You can. You can use one object to handle all the requests for one
>> stream. No need to create multiple objects.
>>
>> Regards,
>> Gihan
>>
>> On Fri, Oct 10, 2014 at 11:50 AM, Inosh Perera <[email protected]> wrote:
>>
>>> Hi all,
>>> When publishing data to BAM, it is possible to use AsyncDataPublisher as
>>> mentioned here[1]. Can we use a single AsyncDataPublisher  to publish data,
>>> or is it necessary to create separate object of AsyncDataPublisher for each
>>> request? If one object is enough, does it handle multiple request coming at
>>> once?
>>>
>>> [1]. https://docs.wso2.com/display/BAM230/Data+Publisher
>>>
>>> Regards,
>>> Inosh
>>>
>>> --
>>> Inosh Perera
>>> Software Engineer, WSO2 Inc.
>>> Tel: 0785293686
>>>
>>
>>
>>
>> --
>> W.G. Gihan Anuruddha
>> Senior Software Engineer | WSO2, Inc.
>> M: +94772272595
>>
>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manoj Gunawardena
Tech Lead
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 2291643
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to