Posted: Tue Jun 07, 2005 4:22 am Post subject: error handling
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
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.
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