on 03-16-2006 3:14 PM
Hi,
I am working for a client that uses a MQ Series as their interface routing infrastructure. They have written some custom tools that log MQ messages. Their tools expect the MQ message ID to be in a specific format YYYY_MM_DD_HHMMSS_AAAAAA where AAAAAA is a unique set of characters based on the millisecond.
Is it possible to set the JMS message ID on a JMS receiver adapter?
Thanks in advance for your help,
Craig
Hi Craig,
as it looks you have to set the Message Id in a special format. I am not sure if this is possible at all. I didn't find a way to influence how XI sets the JMS Message Id.
Maybe you could work with the JMS Correlation ID instead and have your client adapt his tools. You can use either a User-Defined Function or a Java Mapping, setting the so-called Adapter-specific attribute DCJMSCorreleationId
Here you can find an example how to do this in the User-Defined Function:
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
In a Java Mapping it is similar:
http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
This example uses the File Adapter, but the same applies for the JMS Adapter.
The JMS Adapter has the namespace http://sap.com/xi/XI/System/JMS
Have a look at this one to find out more about the Adapter-specific attributes of the Receiver JMS Adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm
I hope that this information is of some help for you.
regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
As Peter has pointed out, I also doubt if XI can really set the message ID of an MQ message. One thing for sure is MQ allows you to set the message id for a perticular message and your format is also ensuring that it would generate a unique ID. But better option would be use of correlation ID.XI currently allows to pass you additional data in the form of JMS Properties whose value can be set to
XI Message ID
XI Reference ID
XI Conversation ID.
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
These links should help you setb your JMS message ID on a JMS receiver adapter:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm">Configuring the Receiver JMS Adapter</a>
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
Regards,
abhy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.