|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
QueueConnection, ConnectionConsumer stop/close problem |
« View previous topic :: View next topic » |
Author |
Message
|
griffel |
Posted: Tue Mar 22, 2005 3:46 am Post subject: QueueConnection, ConnectionConsumer stop/close problem |
|
|
Novice
Joined: 22 Mar 2005 Posts: 23
|
We've used WebSphere MQ 5.3 CSD6 for Windows (here 2000) as a Java JMS 1.0 client to connect to a queue manager running as WebSphere MQ 5.3.1 on z/OS via SVRCONN-channels.
Our code included a shutting-down sequence like:
connection.stop(); // to avoid further delivery of messages to our application
try {
if (consumer != null) {
consumer.close(); // clean-up ressources
}
} finally {
consumer = null;
}
connection.close(); // not needed any longer
The consumer has a message selector to receive only some specific messages.
Everything worked as designed. Then, we've switched to CSD9 on our client. Afterwards, shutting-down and going alive again within our client, resulted in all messages from the queue the consumer listens on being received by a new consumer on the restarted connection, even though it has it own distiguished message selector set.
After changing our code to
try {
if (consumer != null) {
consumer.close();
}
} finally {
consumer = null;
}
connection.stop();
connection.close();
everything works fine again.
Bug or feature? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 22, 2005 6:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Syncpoint. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
griffel |
Posted: Tue Mar 22, 2005 7:33 am Post subject: |
|
|
Novice
Joined: 22 Mar 2005 Posts: 23
|
Then why the different behavior with CSD6 and CSD9?
The first version of our code sequence shouldn't have
worked either, should it? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 22, 2005 8:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Changes in syncpoint behavior due to changes in JMS version support?
Code patched to meet standards, instead of exhibiting non-compliant behavior?
Did you look at the Readme for CSD9, to see if it indicated any likely candidates? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
griffel |
Posted: Tue Mar 22, 2005 8:32 am Post subject: |
|
|
Novice
Joined: 22 Mar 2005 Posts: 23
|
Read the CSD09's PTF doc and http://www-306.ibm.com/software/ integration/mqfamily/support/summary/wmqprobfp9.html.
Found nothing really suspious, although there's IY60765 at least.
That's why I've posted here. Thought, others may run into subtle errors
with this, too. |
|
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
|
|
|
|