Author |
Message
|
dc01bb |
Posted: Wed Apr 28, 2004 6:01 pm Post subject: JMS with clusters |
|
|
 Novice
Joined: 25 Oct 2001 Posts: 17 Location: Bruce Baxter
|
Just ran into this problem today, and I'm wondering what other MQ Series folks have seen in this vein.
We migrated one of our environments from a non-clustered to a clustered environment. Unbeknownst to me some folks have mad a major investment in JMS in their applications. After the upgrade, as far as I was concerned, everything was working. We could access all the cluster queues from all QM throughout the cluster. However the JMS applications didn't work any more. One of our developers found a post in a Sun JAVA forum regarding JMS with MQ Clusters, and the gist of it is that if you want to access a cluster queue via JMS, you have to give it's hosting QM name instead of the name of the QM that you're connected to even though that QM has visibility and access to that cluster queue. Does this make any sense? I resolved the problem by creating QR definitions in the queue managers that needed access to the cluster queue and that solved the problem.
Anyone care to comment? _________________ IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
EddieA |
Posted: Wed Apr 28, 2004 10:13 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
My guess is that the issue you are seeing is to do with PUTs to a Cluster Queue.
Taken from the Java Manual:
Quote: |
When sending a message to a cluster, leave the Queue Manager field in the JMS Queue object blank. This enables an MQOPEN to be performed in BIND_NOT_FIXED mode, which allows the queue manager to be determined. Otherwise an exception is returned reporting that the queue object cannot be found. This applies when using JNDI or defining queues at runtime. |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
dc01bb |
Posted: Thu Apr 29, 2004 3:57 am Post subject: JMS with clusters |
|
|
 Novice
Joined: 25 Oct 2001 Posts: 17 Location: Bruce Baxter
|
Whereabouts in the Java manual is the reference quoted above. I haven't been able to find it thus far using any of the search mechanisms in the MQ Info Center. _________________ IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
EddieA |
Posted: Thu Apr 29, 2004 7:34 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Part 3: Programming with WebSphere MQ JMS
Chapter 10: Writing WebSphere MQ JMS Programs
Section: Sending a Message
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
dc01bb |
Posted: Thu Apr 29, 2004 8:13 am Post subject: |
|
|
 Novice
Joined: 25 Oct 2001 Posts: 17 Location: Bruce Baxter
|
Many thanks. I had looked at the -00 version of the using Java guide last night and went out and found your reference in the latest -02 version of the Using Java book this morning.
Our developers were rather upset when things stopped working abruptly, but IMHO, that's what you get when you don't read the manuals and follow best practices. _________________ IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
|