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 » JMS Asynchronous listener and Client Connection

Post new topic  Reply to topic
 JMS Asynchronous listener and Client Connection « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Thu Apr 08, 2004 7:58 am    Post subject: JMS Asynchronous listener and Client Connection Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I guess I can have JMS asynchronous listener can wait for a messages on client connection. Is it a good method to do it? I know one problem may be: as it is a client connection, it may get broken any time for any reason.
Unfortunately I have to depend on client connections as I have to run as we are running out of licences. Could you give me your opinions...
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Thu Apr 08, 2004 8:18 am    Post subject: Re: JMS Asynchronous listener and Client Connection Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

techno wrote:
I guess I can have JMS asynchronous listener can wait for a messages on client connection. Is it a good method to do it? I know one problem may be: as it is a client connection, it may get broken any time for any reason.

Exactly... you have to go through a lot of hoops to find your 'status'...
techno wrote:

Unfortunately I have to depend on client connections as I have to run as we are running out of licences. Could you give me your opinions...

That's the worst argument I heard upto now... what do you do when your boss has no money anymore, find a way to work without him spending money or leave?
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
bower5932
PostPosted: Thu Apr 08, 2004 9:30 am    Post subject: Reply with quote

Jedi Knight

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

Can't you register an ExceptionListener that will tell you if your AsynchronousListener has gone away? You could then put in some logic to recover your session.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
techno
PostPosted: Thu Apr 08, 2004 3:43 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Yes. I have an exception-listener. Currently it mails that there is something wrong!

we need to reconstruct the listener and start it. I need see how it works out! Looks like it is complex then we think.

Thanks
Back to top
View user's profile Send private message
sebastiraj
PostPosted: Wed Apr 14, 2004 7:05 am    Post subject: Reply with quote

Novice

Joined: 04 Jul 2002
Posts: 11

Catch the exception in the ExceptionListener onException method and reregister ur MessageListener and start the thread...

Remember reregistering a MessageListener would leave leave if already an active listener is running otherwise make a new one.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Asynchronous listener and Client Connection
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.