Arif,
You can add a Map of JMS-specific (or any other protocol's) header
properties to your NormalizedMessage as a property using key
JbiConstants.PROTOCOL_HEADERS.
Just a snippet (haven't tried or even compiled this):
Map map = new HashMap();
map.put("ActorID", valueFromInputMessage);
out.setProperty(JbiConstants.PROTOCOL_HEADERS, map);
Does this work (haven't used it myself before)?
Gert
[EMAIL PROTECTED] wrote:
Hi Gert,
I want to set the JMSType property on a message for using it as a
message selector at client side, since there is no setter method for
JMSType in normalized message iam setting as follows
NormalizedMessage out = exchange.createMessage();
out.setContent(in.getContent());
out.setProperty("ActorID",valueFromInputMessage);
exchange.setMessage(out, "out");
context.getDeliveryChannel().send(exchange);
and my client program will be
String messageSelector = "ActorID = '11111' "; // where 11111 will be
the value set in POJO class for the message
MessageConsumer consumer = session.createDurableSubscriber(subTopic,
"Subscription111",messageSelector,*false*);
The client program is not able to read the messages from the topic, if i
remove the message selector
MessageConsumer consumer = session.createDurableSubscriber(subTopic,
"Subscription111"); then i will be able to read the messages from topic
But i need to able to set either JMSType property or some string
property on normalized message so that client can read those message
selectively.
Could you please help me out in this.
Regards,
Arif.
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com