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

[jira] Commented: (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:comment-tabpanel&focusedCommentId=62218#action_62218 ] 

maozuoyun commented on CAMEL-3177:
----------------------------------

 Do you meant that I should call ProducerCache.releaseProducer after
finished post the request?





> 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.