Discussion:
[openjms-user] Connection lost in heartbeat
Joshua Liu
2012-09-19 17:14:05 UTC
Permalink
Hi,

I'm trying to build an OpenJMS heartbeat function. When running the code
for long periods of time and sending large amounts of messages to the
topic, it appears that the connection is lost. Initially, the heartbeats
(sent every 2 seconds, for testing purposes), are sent and received without
incident. However, while leaving the program on overnight, I find the
following error message:

javax.jms.JMSException: Connection lost
at
org.exolab.jms.client.net.JMSExceptionAdapter.adapt(JMSExceptionAdapter.java:79)
at
org.exolab.jms.server.net.RemoteServerSession__Proxy.send(RemoteServerSession__Proxy.java:393)
at
org.exolab.jms.client.net.JmsSessionStubImpl.send(JmsSessionStubImpl.java:153)
at org.exolab.jms.client.JmsSession.sendMessage(JmsSession.java:1164)
at
org.exolab.jms.client.JmsMessageProducer.send(JmsMessageProducer.java:359)
at
org.exolab.jms.client.JmsMessageProducer.send(JmsMessageProducer.java:247)
at HBSignalProducer.startHeartbeatSignal(HBSignalProducer.java:65)
at HBSignalProducer.run(HBSignalProducer.java:205)
at java.lang.Thread.run(Thread.java:722)


Thanks.

Loading...