[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
Tue Sep 16 17:29:50 EDT 2008
The problem is that when you CTRL-C the client only the listeners are not informed about the destroy.
(Actually before Tim's commit today, RemotingConnection::destroy was never being called.)
So, I could fix this by calling the listeners upon destroy also.
A side effect of that is I'm getting now this exception on regular closes, as destroy is being called either way:
" Session with name 6dbb02fb-842d-11dd-8672-00007f000001 was already removed"
So, if someone (Tim/Jeff) could please take a look on what's the proper way of doing this?
I have committed a fix and a testcase, and you could follow the diffs on this JIRA:
https://jira.jboss.org/jira/browse/JBMESSAGING-1421
BTW: I feel like the API on FailureListener is a bit confusing. Shouldn't it be called ConnectionListener, and instead of only a failure shouldn't also have a connectionClosed Method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176939#4176939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176939
More information about the jboss-dev-forums
mailing list