You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/09/29 09:54:41 UTC

[jira] Resolved: (CAMEL-3177) DefaultServicePool addAndAcquire don't put service into cache pool

     [ https://issues.apache.org/activemq/browse/CAMEL-3177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3177.
--------------------------------

         Assignee: Claus Ibsen
    Fix Version/s: 2.5.0
       Resolution: Working as Designed

Please use the mailing list first and read the javadoc of the ServicePool.

You have to release it back to the pool when you are done using it.

> DefaultServicePool  addAndAcquire don't put service into cache pool
> -------------------------------------------------------------------
>
>                 Key: CAMEL-3177
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3177
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.4.0
>         Environment: Camel2.4+mina1.1.7
> Tomcat 6.0
> PC Server
>            Reporter: maozuoyun
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> When i use ProducerCache.acquireProducer() method to fetch a producer for an endpoint. Just I want to acquire a producer from cache at twice time.Once time ,I found it works create a new producer,not from cache pool,then i switch to debug mode.and found core problem is that In DefaultServicePool.addAndAcquire method,It doesn't put new service into cache,
> Then I try to modify code like below,then i works well.but i don't know whether I does effect other function. Please give me some advice!
> Thanks you!
> // add at 20100929 for producer pool doesn't cache service problem
> try {
>    entry.put(service);
> } catch (InterruptedException ie) {
>    log.error("Error put service to pool:" + ie.getMessage(), ie);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.