At 09:27 PM 11-01-01 +0100, you wrote: >I noticed that an open context maintains a connection to JNDI so I wondered >how I can >restore this connection like when the connection to the router was >unavailable for some time. >Can a valid Context object be reconstructed with a call to: >Context context=new InitialContext(Hashtable) ? I think that is the case, but can't find the email message that said so. Anyone else ? >Along that line, a TopicConnection's connection and a TopicSession's temp >queues will not >be valid anymore either,so I wonder if either of them throw an exception when >the connection >is lost ?? This would be a nice way of finding out that the router is >unavailable :) If you implement the ExceptionListener interface and calll setExceptionListener( this ) on a TopicConnection you will get an exception when the connection is lost. From a previous message "There is no special error code yet but the reason for the exception is mostly a connection lost." Robert ------------------------------------------------------ SwiftMQ developers mailing list * http://www.swiftmq.com To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and write in the body of your message: UNSUBSCRIBE developers <your-email-address> Archive: http://www.mail-archive.com/developers@mail.iit.de/