I am trying to implement pub-sub model using durable subscription. But I am
getting exception for specifying unique clientID.
Following is my JMSConsumer configuration:
<jms:consumer service="up:DirectorConsumerService"
endpoint="directorConsumerEndpoint"
targetService="up:DirectorConsumerService"
pubSubDomain="true"
clientId="Director"
durableSubscriptionName="Director"
subscriptionDurable="true"
destinationName="updateUserProfileTopic"
connectionFactory="#connectionFactory"
messageSelector="userPrincipals LIKE '%sandeep2%'"/>
<jms:consumer service="up:PortalConsumerService"
endpoint="portalConsumerEndpoint"
targetService="up:PortalConsumerService"
pubSubDomain="true"
clientId="Portal"
durableSubscriptionName="Portal"
subscriptionDurable="true"
destinationName="updateUserProfileTopic"
connectionFactory="#connectionFactory"
messageSelector="userPrincipals LIKE '%smx%'"/>
Following is the error log:-
ERROR - DefaultMessageListenerContainer - Setup of JMS message listener
invoker
failed - trying to recover
javax.jms.JMSException: You cannot create a durable subscriber without
specifying a unique clientID
on a Connection
at
org.apache.activemq.ActiveMQConnection.checkClientIDWasManuallySpecified(ActiveMQConnection.java:1138)
at
org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1066)
at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.createConsumer
(AbstractPollingMessageListenerContainer.java:429)
I am not able to figure out the problem. Please help.
Sandeep.
--
View this message in context:
http://www.nabble.com/Error-in-setting-up-durable-subscriber-tp18256291p18256291.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.