I created a new bug report:
http://jira.jboss.org/jira/browse/JBMESSAGING-542 and added a
test that currently fails (MiscellaneousTest.testClosingConnectionFromMessageListener())
The solution you propose has a drawback, though. If we allow the listener to close the
connection within onMessage(), then postDeliver() won't be able to pass by
session's ClosedInterceptor, which now is "closed", so we'll get an
ERROR "Failed to deliver message" in the logs. It's harmless, but ugly.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970866#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...