Hi All,
Still i am not able to resolve this problem.I didn't understand is that
nobody came across this problem,
or else some thing missing in above configuration.
Please help me, to get rid of this problem.
Thanks,
Sandeep.
sandeep reddy wrote:
>
> 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-tp18256291p18309796.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.