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 » error handling

Post new topic  Reply to topic
 error handling « View previous topic :: View next topic » 
Author Message
mikiu
PostPosted: Tue Jun 07, 2005 4:22 am    Post subject: error handling Reply with quote

Acolyte

Joined: 23 Jul 2002
Posts: 61
Location: toronto

Hello,
We are running within Lotus Notes and use LS2J to get to the Java classes that handle MQ ... what error handling do we need within these classes upon catching the MQException? i.e. do I need to keep track and (1) if connected successfully do I need to include in the in the catch block of the open queue a disconnect? (2) if I opened the queue successfully do I need to include in the catch block of the get a close queue and a disconnect? What happens to the connection to the MQ Manager if I do not close the queue and don't disconnect within my Java code ... just return with a bad return code to the calling Lotus script fragment?
I'd be much obliged for an answer ...
Cheers
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
bower5932
PostPosted: Tue Jun 07, 2005 6:05 am    Post subject: Reply with quote

Jedi Knight

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

You should definitely close and disconnect any of the objects that you opened. WMQ will clean these up if you don't, but you'll have to wait for it to notice that you've gone away which could start to affect other things.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » error handling
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.