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 » Setting MQ process name from a java program.

Post new topic  Reply to topic
 Setting MQ process name from a java program. « View previous topic :: View next topic » 
Author Message
meriton
PostPosted: Mon Jan 19, 2004 4:58 pm    Post subject: Setting MQ process name from a java program. Reply with quote

Novice

Joined: 07 Aug 2002
Posts: 24

I am using MQ JMS to write an application that uses triggered dynamic queues, and would like to know how to set the MQCA_PROCESS_NAME attribute for each dynamic queue to an existing process definition object.
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Jan 19, 2004 9:24 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

You are not going to be able to do that with JMS. JMS is designed for reading from, and writing to, queues. It's not designed as an administrative API.

But, the bigger question is, why do you want to trigger dynamic queues. There has to be another way to design your system. What are you trying to achieve.

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
meriton
PostPosted: Tue Jan 20, 2004 3:04 pm    Post subject: Reply with quote

Novice

Joined: 07 Aug 2002
Posts: 24

My apologies, I meant the MQSeries Java API, not JMS - is there a way to set the ProcessName attribute for each queue?

Dynamic queues are being used to store messages belonging to different batches, with a depth trigger set to the batch size on each queue. When the queue is triggered (msgs on queue = size of batch), another program collates all the msgs on the queue into a file which is then submitted to another system.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Jan 21, 2004 7:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

SupportPac MS0B supplies the Java PCF classes which allow you to perform administration.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
EddieA
PostPosted: Wed Jan 21, 2004 8:23 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

As Ron has pointed out, the PCF classes are available in a Support Pac.

But, as well as the ProcessName, you'll have to set up all the other Triggering attributes as well. Your Triggered application will have to use the Trigger message to work out which Queue to read. And how are you removing the Dynamic Queues after you have used them.

Would it not be better to use a single Queue for these messages and associate the MessageID/CorrelationID with a batch. You could then send a single message to a Triggered Queue that contains the details, so the second application could just pull the required messages.

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Setting MQ process name from a java program.
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.