ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » How to send some parameters with Message

Post new topic  Reply to topic
 How to send some parameters with Message « View previous topic :: View next topic » 
Author Message
prasannal
PostPosted: Tue Nov 11, 2003 6:29 am    Post subject: How to send some parameters with Message Reply with quote

Apprentice

Joined: 04 Aug 2003
Posts: 44

Hi all.
I am sending one MQSeries message which will be read by MDB.
Then I want to take decision depending on some values whicjh will not come with message.
So, I need to set those values explicitly and access them in MDB usinG JMS.
So, How I should do that?

Pls mail me ASAP.
Thanx.
Pras
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 11, 2003 8:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Use message Properties to hold the extra information you need.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
emiranda
PostPosted: Tue Nov 11, 2003 12:53 pm    Post subject: Reply with quote

Disciple

Joined: 21 Nov 2002
Posts: 196
Location: Dublin, Ireland

Hi,

If you are using JMS, so you can build an RFH2 header to exchange information between applications.

Take a look in manual Using Java (Chapter 12. JMS messages - Mapping JMS messages onto WebSphere MQ messages). It's well documented!

Cheers
_________________
Warm Regards,
EM
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Nov 11, 2003 1:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Make MQ build the RFH2 header for you. You can do this by setting properties of the message which will get put in the <usr> folder of the header. There is a (simple) sample called mqjmsusr.java at

http://www.developer.ibm.com/tech/sampmq.html

It puts a string and an integer into the header.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
prasannal
PostPosted: Wed Nov 12, 2003 8:34 am    Post subject: About Message properties Reply with quote

Apprentice

Joined: 04 Aug 2003
Posts: 44

Hello,
You pointed out on setting message properties. But, how I can set multiple properties using MQSeries non-jms api?

Thanx.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 12, 2003 8:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Then you will need to manually build the MQRFH2 header, and put the properties in it. I'm sure that there is sample code to do this in the archived messages in this forum - at least for Java.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 12, 2003 10:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Not java, but there is a c version at:

http://www.developer.ibm.com/tech/sampmq.html

It is called jsmqput.c. It can probably give you pointers.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to send some parameters with Message
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.