[
https://issues.apache.org/activemq/browse/SM-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47174#action_47174
]
Freeman Fang commented on SM-1621:
----------------------------------
Hi Ron,
Google a bit, the article here [1] inspired me, per as James Strachan's
suggest, we should use PooledConnectionFactory with spring jms template.
So the xbean.xml for your jms su should be
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:tns="http://fusesource.com/jmsinoutbug"
xmlns:amq="http://activemq.org/config/1.0">
<jms:provider service="tns:jmsprovider" endpoint="provider"
destinationName="requests.queue"
connectionFactory="#pooledConnectionFactory"/>
<bean id ="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="tcp://localhost:61616" />
</bean>
</property>
</bean>
</beans>
Just change xbean configuration should work with 3.2 branch
But for 3.3 branch, since we introduce the MessageListenerContainer, so we need
add the ListenerContainer also for the tempoary destination.
I will commit fix for 3.3 branch and tests for both.
[1]http://www.theserverside.com/news/thread.tss?thread_id=37740
Cheers
Freeman
> New JMS in/out provider should support temporary queues/topics (as reply
> destinations)
> --------------------------------------------------------------------------------------
>
> Key: SM-1621
> URL: https://issues.apache.org/activemq/browse/SM-1621
> Project: ServiceMix
> Issue Type: Improvement
> Affects Versions: 3.2.2
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 3.2.3, servicemix-jms-2008.02
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.