ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » HowTo specify put options when using JMS QueueSender

Post new topic  Reply to topic
 HowTo specify put options when using JMS QueueSender « View previous topic :: View next topic » 
Author Message
Rclements
PostPosted: Fri Jul 25, 2003 11:28 am    Post subject: HowTo specify put options when using JMS QueueSender Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Sat Jul 26, 2003 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rclements
PostPosted: Tue Aug 05, 2003 12:48 pm    Post subject: Put Options on JMS message Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Tue Aug 05, 2003 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vin
PostPosted: Tue Aug 05, 2003 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » HowTo specify put options when using JMS QueueSender
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.