Author |
Message
|
wilsonjohn24 |
Posted: Mon Feb 11, 2008 6:40 am Post subject: MQJMS Binding and Default Selector |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
Version 6.1
Attempting to do RR scenario correlating on Message ID.
Using MQJMS Import component.
How can I override the default Response Message Selector?
selector=callbackID='CALLBACKMESSAGE_ID:414d512051324348495343574d51444545dae41820228e04'
I basically just want to do a simple correlation on an ID!
cheers,
John |
|
Back to top |
|
 |
wilsonjohn24 |
Posted: Mon Feb 11, 2008 6:55 am Post subject: |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Feb 11, 2008 7:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Remember that JMS does not allow for the setting of Message ID on send(), this is overridden and a unique ID is always created.
If you are trying to talk to a legacy application that is not implemented using JMS, and does not honor the MQ Report Options fields that instruct it how to address a reply... then you likely need to either split the process as described in that thread or create your own MessageListener with your own selector. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wilsonjohn24 |
Posted: Mon Feb 11, 2008 7:20 am Post subject: |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
Hi,
Thanks for the response.
Yes I appreciate that JMS overrides the message ID on the send. The way I want it to work is that process server uses the Message ID ( created from the send) and uses that as a correlation ID to get the reply.
I basically want
selector= 'JMSCorrelationID=414d512051324348495343574d51444545dae41820228e04'
rather than:
selector=callbackID='CALLBACKMESSAGE_ID:414d512051324348495343574d51444545dae41820228e04'
The actual correlation identifier is fine......
I dont want to be retrieveing the message on the "callbackID" property nor have the "CALLBACKMESSAGE_ID:" appended to the start of the retrieval string.
cheers,
John |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Feb 11, 2008 7:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You're probably outside the limits of my expertise with WPS/WID development.
It seems that devWorks thread says that the response should more or less be automatically correlated - and that the CALLBACK stuff comes from using a callback queue.
So it seems that you're not configuring something in your Import configuration or in your BPEL/code. Maybe if you post more information about how that's done and wired together, someone else can help. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wilsonjohn24 |
Posted: Mon Feb 11, 2008 7:28 am Post subject: Side thought..... |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
The CALLBACK additions seems wrong as the option I have selected is:
"Correlation by Message ID"
So surely the default behaviour must be to use JMSCorrelationID and not attempt to retrieve a message based on an entierly different property- not sure if this is maybe a SIB "feature"/sideaffect. |
|
Back to top |
|
 |
|