Oops. I added e.printStackTrace in onException. It is never called (well, I only waited about 1/2 hour).
And often the second sendMessage can't connect to queue/A and I get the following output: Starting JBoss...JBoss is up Sending message...enqueued...received Shutting down JBoss...JBoss is down Starting JBoss...JBoss is up org.jboss.mq.SpyJMSException: Cannot unsubscribe to this destination; - nested throwable: (java.io.EOFException) at org.jboss.mq.Connection.removeConsumer(Connection.java:1208) at org.jboss.mq.SpySession.removeConsumer(SpySession.java:733) at org.jboss.mq.SpyMessageConsumer.close(SpyMessageConsumer.java:417) at org.jboss.mq.SpySession.close(SpySession.java:347) at org.jboss.mq.Connection.close(Connection.java:468) at JBossRebootExperiment2.safeClose(JBossRebootExperiment2.java:121) at JBossRebootExperiment2.main(JBossRebootExperiment2.java:42) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2606) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845) at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:601) at org.jboss.mq.il.oil.OILServerIL.unsubscribe(OILServerIL.java:494) at org.jboss.mq.Connection.removeConsumer(Connection.java:1198) ... 6 more Sending message...QueueConnection.close failed: Messages successfully transmitted: 1 Exceptions received: 0 Shutting down JBoss...JBoss is down javax.naming.CommunicationException. Root exception is java.rmi.NoSuchObjectException: no such object in table at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) at javax.naming.InitialContext.lookup(InitialContext.java:347) at JBossRebootExperiment2.sendMsg(JBossRebootExperiment2.java:105) at JBossRebootExperiment2.sendMessage(JBossRebootExperiment2.java:96) at JBossRebootExperiment2.main(JBossRebootExperiment2.java:39) Process terminated with exit code 0 <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826635#3826635">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826635>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user