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 09:28:40 UTC
[jira] Created: (CAMEL-3177) DefaultServicePool addAndAcquire
don't put service into cache pool
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
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.
[jira] Commented: (CAMEL-3177) DefaultServicePool addAndAcquire
don't put service into cache pool
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62219#action_62219 ]
Claus Ibsen commented on CAMEL-3177:
------------------------------------
Yes you need to release it back.
But all this is usual internal only so why are you using the producer cache directly?
And please use the mailing list
> 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.
[jira] Commented: (CAMEL-3177) DefaultServicePool addAndAcquire
don't put service into cache pool
Posted by "maozuoyun (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CAMEL-3177) DefaultServicePool addAndAcquire
don't put service into cache pool
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.