Fix to support spring 2.0, connections produced with SingleConnectionFactory do not allow you to set the clientId on the connection.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@467708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-10-25 16:46:26 +00:00
parent fed2d6b5c7
commit be0aaf481f
1 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,11 @@
</bean> </bean>
</property> </property>
</bean> </bean>
<!-- Spring JMS Template -->
<bean id="consumerJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="jmsFactory"/>
</bean>
<!-- a sample POJO which uses a Spring JmsTemplate --> <!-- a sample POJO which uses a Spring JmsTemplate -->
<bean id="producer" class="org.apache.activemq.spring.SpringProducer"> <bean id="producer" class="org.apache.activemq.spring.SpringProducer">
@ -72,7 +77,7 @@
<!-- a sample POJO consumer --> <!-- a sample POJO consumer -->
<bean id="consumer" class="org.apache.activemq.spring.SpringConsumer"> <bean id="consumer" class="org.apache.activemq.spring.SpringConsumer">
<property name="template"> <property name="template">
<ref bean="myJmsTemplate"></ref> <ref bean="consumerJmsTemplate"></ref>
</property> </property>
<property name="destination"> <property name="destination">