anonymous wrote :
| I get my ConnectionFactory and my Queue from the JNDI. Should I do an
initialContext.lookup(...) twice ?
|
Yes. I guess you could implement the javax.jms.ExceptionListener interface.
(Altough, i'm not 100% sure if this is the way to do it, if you use a session
bean).
You will have to implement the onException() method.
| /**
|
| * Handle asynchronous errors with the connection.
|
| */
|
| public void onException(javax.jms.JMSException jsme) {
|
| // Tries to reconnect
|
| }
|
Also register this listerer:
| connection.setExceptionListener(
|
| (javax.jms.ExceptionListener) ExceptionListenerImpl);
|
You can do your reconnecting in the onException method.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869706#3869706
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869706
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user