0 Replies Latest reply on Mar 8, 2007 10:20 AM by Indrakshi Valavala

    Writing to jbossMQ while using clustering

    Indrakshi Valavala Newbie

      I have two jboss 4.0 servers running in a cluster. There are session beans deployed which write to jbossMQ queue.

      Due to the HA-Singleton only one of the server holds the queues. So it works fine when the sessions beans from that server write to the queue. However the session beans from the other server errors out as it can't get the context.

      How can I get around this. Are there any code samples ? Thank you for all the help.


      2007-03-07 17:31:37,110 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1100
      javax.naming.CommunicationException: Failed to connect to server localhost:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1100 [Root exception is java.net.ConnectException: Connection refused: connect]]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)