Author |
Message
|
techno |
Posted: Thu Apr 08, 2004 7:58 am Post subject: JMS Asynchronous listener and Client Connection |
|
|
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 |
|
 |
Michael Dag |
Posted: Thu Apr 08, 2004 8:18 am Post subject: Re: JMS Asynchronous listener and Client Connection |
|
|
 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 |
|
 |
bower5932 |
Posted: Thu Apr 08, 2004 9:30 am Post subject: |
|
|
 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 |
|
 |
techno |
Posted: Thu Apr 08, 2004 3:43 pm Post subject: |
|
|
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 |
|
 |
sebastiraj |
Posted: Wed Apr 14, 2004 7:05 am Post subject: |
|
|
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 |
|
 |
|