You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sandeep reddy <sa...@in2m.com> on 2008/07/01 09:03:47 UTC

Re: message properties stripped out

Hi Gert,

    Thanks for your reply.
    Done with creating a custom marshaler, creates message with setting up
properties.
    But currently facing another different problem which is related to
durableSubscriber.

    I am using Pub-Sub model using (topic).

    Problem:
             1. I am able to successfully send messages to topic.
             2. And consumers are able to get consume message depending upon
the criteria (using messageSelector). But here some times when my consumer
goes offline at that time if any message comes to topic are not able to
consume that message.
             3. So found that to use durableSubscriber.But after doing
necessary settings, deployed component to servicemix getting error :
               
                       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)

Note: Using servicemix3.2.1

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%'"/>

     
what's wrong?

Sandeep.

-- 
View this message in context: http://www.nabble.com/message-properties-stripped-out-tp18126637p18210468.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.