This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JMS header question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS header question" Watch "JMS header question" New topic
Author

JMS header question

vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
hi guys,

can somebody tell me how can I add a user-defined value, say Versionid in the JMS Mmessage header? this will be sent back to a non-JMS MQ.

is it something like this?:

new MQQueue().setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
msg.setString Property("Versionid", "V1.0");
[ June 08, 2006: Message edited by: vivien siu ]

I'm not available, my BF's name is WORK.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41144
    
  45
I'll move this question to the EJB/J2EE forum, where JMS is discussed.


Ping & DNS - my free Android networking tools app
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

You have got it right.


Groovy
vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
if the msg object is of class TextMessage, it will still work right?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Originally posted by vivien siu:
if the msg object is of class TextMessage, it will still work right?


It works for all message types.
vivien siu
Ranch Hand

Joined: Nov 10, 2005
Posts: 143
ok, thanks
 
jQuery in Action, 2nd edition
 
subject: JMS header question
 
Similar Threads
Can JMS + MQ work together?
Can JMS + MQ work together?
Regd JmsSendingMessageHandler (Spring Integration)
Class.newInstance
how to add mqrfh2 header