File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 42913
    
  68
I'll move this question to the EJB/J2EE forum, where JMS is discussed.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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: 8919

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS header question