Gert,
Thanks again for replying.
I am creating the queue at run time using camel-context.xml file and here is
the piece of code which actually sends the message to the queue "requests"
when my assenbly is up and running in servicemix.
---------------------------------------------------------------
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory();
connectionFactory.setBrokerURL(BROKER_URL);
JmsTemplate jt = new JmsTemplate(connectionFactory);
jt.send("requests", new MessageCreator()
{
public Message createMessage(Session session) throws JMSException
{
return session.createTextMessage("<hi>hello</hi>");
}
});
---------------------------------------------------------------
Also one more thing, I run the above app as an independent demo app which
just sends the message to whatever queue I want to send. I run this app as a
normal Java Application from Eclipse.
Now I need to check the sender of the message which is sent as above in
camel-context.xml file via xpath/xquery. Is it possible to achieve what I
want in servicemix?
Sanjay
Gert Vanthienen wrote:
>
> Sanjay,
>
> If you would have been using JBI endpoints, this message is available in
> an exchange property called JbiConstants.SENDER_ENDPOINT
> ("org.apache.servicemix.senderEndpoint"). However, I suppose you have
> put the message in the queue yourself (using a JMS endpoint or a Camel
> route perhaps?). If you want to be able to filter the message later on
> the original sender, you will have to make sure that the original sender
> is available in the JMS message headers as well. Is this information
> available? Which endpoint type and/or technology are you using to put
> the message on the queue in the first place?
>
> Regards,
>
> Gert
>
> Sanjay Jain wrote:
>> Hi Guys,
>>
>> Here is my scenario,
>>
>> I am sending the message to the queue and filtering it with xpath query.
>> I
>> want to know who is sending the message to the queue?
>>
>> Is it possible to get the indetification of the sender(uri) of the
>> message
>> in servicemix? Is there any way to get this in servicemix?
>>
>> Looking forward to see your expert comments.
>>
>> Thanks,
>> Sanjay
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
>
--
View this message in context:
http://www.nabble.com/Message-Sender-Identification-tp18530804p18581201.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.