0 Replies Latest reply on Feb 19, 2003 11:38 AM by Roshan

    Reconnect problems in JMS

    Roshan Newbie

      Scenario - Pub/Sub domain.
      Remote JVM's Subscriber and Publisher -
      If the JBOSS server is shutdown or looses network connection,
      And trying reconnect to the same topic and jboss server when it comes back up. It connects all fine. But I get the following message exception everytime
      Exception: ping timeout.)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:603)
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1187)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaem
      java:364)
      at java.lang.Thread.run(Thread.java:484)
      + nested throwable: java.io.IOException: ping timeout.
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1179)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaem
      java:364)
      at java.lang.Thread.run(Thread.java:484)
      This keeps invoking the onException method..

      Then on setting the messagelistner I get the same message more than once Seems like jboss does not loose the message listener handle and keeps adding them.
      Seems like there is a ping thread in the back ground that does not get reset on reconnection.
      --if I close the subscribers session or connection, it does a system exit killing the jvm instance.
      Can anyone adivce if there is a fix or solution to this issue.
      Thanks
      Rosh