I have the exact same problem. would like to see an answer to resolve this.
After a while it throws a:
# An unexpected error has been detected by Java Runtime Enviornment:
# java.lang.OutOfMemory: requested 868648 bytes for Chink::new. Out of swap space?
#Internal Error (414C4C4F434154494F4E0E43505000C7), pid=6864, tid=8228
bnutting, what you have is not enough configured memory or a bum JDK version. Perhaps a memory leak in your app or JBoss.
As for EOF: EOF comes when the client pro-actively closes the connection or the connection is reset. This can come from hardware or timeouts. If you get an exception on the client, you have to manually reconnect. Or use an exception listener as you have figured out.
HA is not deployed as standard.
I am having the same exact problem! I would appreciate any help on this problem. Everything I've read, says I have the program setup correctly to open everything and then in a while loop waiting for messages do the send of the message. When a message finally came in (in my case it can be 30 minutes or more) and I tried to forward on to a JBoss topic, I got this error:
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.io.IOException: Client is not connected)
at ptotx.DCMQReceiver.main(Unknown Source)
Caused by: java.io.IOException: Client is not connected
... 5 more