Yes we have. Here are snippets of our code:

      tcf_ = (TopicConnectionFactory) context_.lookup(connectionFactory_);
      conn_ = tcf_.createTopicConnection ();
      conn_.setExceptionListener(new ExceptionListener() {
        public void onException(JMSException e)
        {
          if (!restarting_)
            JMSInterface.shutdownAndRestart(e);
        }
      });


In "shutdownAndRestart" we attempt to disconnect and reconnect to JMS. We log several 
messages - which I do not see in this case. Here are more snipets of the code:


  private static void shutdownAndRestart(Throwable t) {

    TSLogger.getMainLogger().debug("JMS Service Failure", t);
    restarted_ = false;
    synchronized (JMSInterface.class) {
      if (restarted_)
        return;
      restarting_ = true;
      for (;;) {
        TSLogger.getMainLogger().warn("JMS service not reachable ... will try again in 
a few seconds");
        try {
          Thread.sleep (reconnectTimeout_);
        }
        catch (InterruptedException ie) {}

    ... etc


We don not see the warning message. In a more typical operation, when we shut down 
JBoss we see the warnings logged by the clients. When JBoss is restarted the clients 
reconnect and continue.

...richie




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822534#3822534

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822534


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to