i found the reason. because the durable subscriptons's configed. i am using spring2.0 's example . the message customer config like this:
<bean id="destJmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory"> <property name="connectionFactory"> <bean class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL"> <value>failover:tcp://localhost:61616</value> </property> </bean> </property> </bean> <bean id="listenerContainerTemplet" abstract="true" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="concurrentConsumers" value="1" /> <property name="connectionFactory" ref="destJmsFactory" /> <property name="transactionManager" ref="transactionManager4MQ" /> </bean> <bean id="transactionManager4MQ" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="destJmsFactory" /> </bean> <bean id="exampleTopic" class="org.apache.activemq.command.ActiveMQTopic" autowire="constructor"> <constructor-arg value="projectname.example.topic" /> </bean> <bean id="exampleConsumer" class="com.companyname.projectname.mq.Consumer4Example" /> <bean id="listenerContainer1" parent="listenerContainerTemplet"> <property name="destination" ref="exampleTopic" /> <property name="clientId" value="exampleConsumer1" /> <property name="subscriptionDurable" value="true" /> <property name="durableSubscriptionName" value="exampleConsumer1" /> <property name="messageSelector" value="exampleConsumer1" /> <property name="messageListener" ref="exampleConsumer" /> </bean> no matter what value the clientId and durableSubscriptionName set,there is the same error: ERROR Setup of JMS message listener invoker failed - trying to recover javax.jms.JMSException: You cannot create a durable subscriber without specifyin g a unique clientID on a Connection that's all.:_( John Heitmann wrote: > > It works fine for me. I ate too many cookies yesterday and all the > glucose sent my ESP on the fritz, so can you provide some more > detail? Is your networkTTL set too low? > > John > > On Dec 24, 2006, at 10:50 PM, amon.lei wrote: > >> >> it's ok in 4.02 but failed in 4.10. help >> -- >> View this message in context: http://www.nabble.com/4.10-doesnt- >> support-store-and-forward-----tf2878730.html#a8045382 >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/4.10-doesnt-support-store-and-forward-----tf2878730.html#a8103723 Sent from the ActiveMQ - User mailing list archive at Nabble.com.