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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...