Hi all,

I resolved the issue.

Previously, it happened since i configured the connection manager only once
for all the receivers. For every creation of an adapter a connection
manager should be configured.

Thanks,
Best Regards

On Thu, Jun 11, 2015 at 10:32 PM, Ramindu De Silva <ramin...@wso2.com>
wrote:

> Hi all,
>
> I am experiencing $subject when using multiple event publishers. Earlier
> implementation of CEP used only one http client per http adapter which used
> SystemDefaultHttpClient. But it couldn't handle high frequency of data. So
> i managed to implement PoolingHttpClientConnectionManager and use the
> CloaseableHttpClient. It works perfectly when theres only one http adapter.
> But when I add another http adapter, it does not publish the requests using
> the adapter i added secondly.
>
> Im using Apache HttpClient 4.3.3
>
> Any suggestions for the reason or any alternative ways to overcome this
> issue?
>
> The following link[1] is my implementation. I referred to this post[2] as
> well.
>
> 1.
> https://github.com/ramindu90/carbon-analytics-common/blob/http-performance-testing/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.http/src/main/java/org/wso2/carbon/event/output/adapter/http/HTTPEventAdapter.java
>
> 2. http://www.baeldung.com/httpclient-connection-management
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com <sanj...@wso2.com>
> mob: +94 772339350
> mob: +94 782731766
>



-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com <sanj...@wso2.com>
mob: +94 772339350
mob: +94 782731766
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to