|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting MQ process name from a java program. |
« View previous topic :: View next topic » |
Author |
Message
|
meriton |
Posted: Mon Jan 19, 2004 4:58 pm Post subject: Setting MQ process name from a java program. |
|
|
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 |
|
 |
EddieA |
Posted: Mon Jan 19, 2004 9:24 pm Post subject: |
|
|
 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 |
|
 |
meriton |
Posted: Tue Jan 20, 2004 3:04 pm Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Jan 21, 2004 7:05 am Post subject: |
|
|
 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 |
|
 |
EddieA |
Posted: Wed Jan 21, 2004 8:23 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|