[jboss-user] [Messaging, JMS & JBossMQ] - Writing to jbossMQ while using clustering

indrakshi do-not-reply at jboss.com
Thu Mar 8 10:20:50 EST 2007

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)

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

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

More information about the jboss-user mailing list