Author |
Message
|
Rclements |
Posted: Fri Jul 25, 2003 11:28 am Post subject: HowTo specify put options when using JMS QueueSender |
|
|
Novice
Joined: 20 Jun 2002 Posts: 18
|
Raw MQ would have something like
-----------------------------------------
MQPutMessageOptions putOptions = new MQPutMessageOptions();
putOptions.options = MQC.MQPMO_NEW_CORREL_ID;
...
...
queue.put(<message>, putOptions);
------------------------------------------
I cant seem to find how this would happen when trying to use a QueueSender to send a TextMessage.....
thanks in advance...
Ricardo |
|
Back to top |
|
 |
EddieA |
Posted: Sat Jul 26, 2003 7:56 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Don't think this is possible in JMS.
Why do you want your application to generate a new Correlation Id. Maybe knowing this, another solution might be suggested.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Rclements |
Posted: Tue Aug 05, 2003 12:48 pm Post subject: Put Options on JMS message |
|
|
Novice
Joined: 20 Jun 2002 Posts: 18
|
we have a set of ejbs which are processing requests from the mainframe. They require the use of an external service.
The ejbs need to be able to match the responses with the questions .....
ricardo |
|
Back to top |
|
 |
EddieA |
Posted: Tue Aug 05, 2003 3:48 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
I'm still not sure why you need to generate new, unique, Correlation IDs. Probably because I don't have the full picture.
What is the exact flow of messages and replies, and at what points are you matching the replies, and how are you doing that match.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Vin |
Posted: Tue Aug 05, 2003 6:54 pm Post subject: |
|
|
Master
Joined: 25 Mar 2002 Posts: 212 Location: India
|
You can also use dynamic queues to corellate the request to the response. This is much simpler than using the corellation Id. Create a dynamic queue for each request and after the response is recieved on the other end kill this queue so that it no longer exists and release resources this way. Hope that helps. |
|
Back to top |
|
 |
|