[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Messages are lost on Queue?

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Sep 17 10:10:24 EDT 2008


The problem is, a CTRL-C on the client, is closing the socket. 

When the socket is closed, RemotingServiceImpl::connectionDestroyed is called and the connection is removed.

At that point, RemotingConnectionImpl::destroy is called (Tim added this call yesterday), and nothing is cleared on Server-side. As a result you will have a dead consumer listed on QueueImpl, and nothing will ever clear that. (The connection doesn't exist on RemotingServiceImpl any more, so the pinger will forget about that connection).

To fix this, we need to to cleanup server-side objects after  RemotingServiceImpl::destroy or make sure Ping would catch this. But I'm a bit confused on how this should work  (seems a bit dodgy now (as British people would say... http://www.merriam-webster.com/dictionary/Dodgy ))

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

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



More information about the jboss-dev-forums mailing list