activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From claro <claro_l...@hotmail.com>
Subject Problem to reconnect bridge from activeMQ to JBoss
Date Mon, 07 Dec 2009 17:35:15 GMT

Hi all,

i have activeMQ 5.3.0 configured to bridge with JBoss 4.2.2.
The activemq.xml file configures the jmsBridgeConnectors to outbound all the
topic messages to jboss topic messages.
The jboss connection is defined with a JndiTemplate defining the properties
for jboss and the file jbossall-client.jar is already in the lib folder of
activemq.

But,


when jboss is stopped, the activemq broker gives the following warn:

WARN | Connection failure, use javax.jms.Connection.setExceptionListener()
to handle this error and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable:
(java.io.EOFException)
	at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
	at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
	at
org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
	at
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:466)
	at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:395)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.EOFException
	at
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2722)
	at java.io.ObjectInputStream.readByte(ObjectInputStream.java:895)
	at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:340)
	... 1 more

and

when the jboss is restarted then gives this warn:

WARN | Connection failure, use javax.jms.Connection.setExceptionListener()
to handle this error and reconnect
org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested
throwable: (java.io.IOException: Client is not connected)
	at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
	at
org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
	at org.jboss.mq.Connection.pingServer(Connection.java:848)
	at org.jboss.mq.Connection$PingTask.run(Connection.java:1317)
	at
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Client is not connected
	at
org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:288)
	at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:262)
	at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:345)
	at org.jboss.mq.Connection.pingServer(Connection.java:844)
	... 3 more

Reading the errors, i think the solution is to use setExceptionListener() to
handle the error and reconnect, but is possible to setExceptionListener() in
activemq.xml file? And where and how must i configure it?

Any help would be greatly appreciated.

Thanks.
-- 
View this message in context: http://old.nabble.com/Problem-to-reconnect-bridge-from-activeMQ-to-JBoss-tp26680859p26680859.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message