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 » QueueConnection, ConnectionConsumer stop/close problem

Post new topic  Reply to topic
 QueueConnection, ConnectionConsumer stop/close problem « View previous topic :: View next topic » 
Author Message
griffel
PostPosted: Tue Mar 22, 2005 3:46 am    Post subject: QueueConnection, ConnectionConsumer stop/close problem Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 22, 2005 6:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Syncpoint.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
griffel
PostPosted: Tue Mar 22, 2005 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 22, 2005 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
griffel
PostPosted: Tue Mar 22, 2005 8:32 am    Post subject: Reply with quote

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
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 » QueueConnection, ConnectionConsumer stop/close problem
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.