Author |
Message
|
prasannal |
Posted: Tue Nov 11, 2003 6:29 am Post subject: How to send some parameters with Message |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Nov 11, 2003 8:06 am Post subject: |
|
|
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 |
|
 |
emiranda |
Posted: Tue Nov 11, 2003 12:53 pm Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Tue Nov 11, 2003 1:54 pm Post subject: |
|
|
 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 |
|
 |
prasannal |
Posted: Wed Nov 12, 2003 8:34 am Post subject: About Message properties |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Nov 12, 2003 8:49 am Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Nov 12, 2003 10:10 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
|