Author |
Message
|
vatsanc |
Posted: Thu Sep 14, 2006 7:29 am Post subject: RFH in C++ MQ API |
|
|
Newbie
Joined: 27 Jun 2006 Posts: 6
|
How can I modify the RFH header using MQ's C++ API. I could not find any documentation or sample code for doing this in MQ C++ API documentation.
I know it can be done using C and Java APIs. Can someone kindly point me to the appropriate doc and/or sample code. The problem I am trying to solve is as follows: A C++ sender client needs to set certain application info into message headers to be read by the Java receiver client. This application info should not be part of the message payload. Is RFH the best way to do this?
Thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 14, 2006 7:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Your best bet for talking to Java applications, that are presumably using JMS, from a C or C++ application is to use XMS. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vatsanc |
Posted: Thu Sep 14, 2006 7:44 am Post subject: |
|
|
Newbie
Joined: 27 Jun 2006 Posts: 6
|
- Is XMS available on AIX platform ? I was quite surprised to find that the list of supported platforms on IBM's page for XMS didn't have AIX...
- The Java receiver client is using Base MQ Java api (not JMS). In this case can RFH be used ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 14, 2006 7:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The RFH2 can be used - but if neither of you are using XMS/JMS, then you both have to write a fair amount of code to build and parse the RFH2.
I'd be surprsied if XMS wasn't available on the AIX platform, too - but I don't know for sure and I suspect one of the developers will be along in a bit to clarify. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vatsanc |
Posted: Thu Sep 14, 2006 8:07 am Post subject: |
|
|
Newbie
Joined: 27 Jun 2006 Posts: 6
|
I heard that RFH is easier to build/parse because it uses key-value pairs. Can RFH be used (instead of RFH2) with C++ clients ? The problem seems to be that neither RFH nor RFH2 is documented in the C++ API docs. I couldn't find any sample code either. Any pointers will help.
If anyone knows for certain that XMS is supported on AIX platform please post. I would like to explore that possibility. |
|
Back to top |
|
 |
vennela |
Posted: Thu Sep 14, 2006 10:17 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
|