[
http://jira.jboss.com/jira/browse/JBMESSAGING-542?page=comments#action_12... ]
Ovidiu Feodorov commented on JBMESSAGING-542:
---------------------------------------------
Paliative fix:
if (Thread.currentThread().equals(sessionExecutor.getThread()))
{
// the current thread already closing this MessageCallbackHandler, so no need to
register
// another Closer (see
http://jira.jboss.org/jira/browse/JBMESSAGING-542)
return;
}
in MessageCallbackHandler.waitForOnMessageToComplete()
However, 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.
Closing connection inside MessageListener's onMessage() causes
deadlock
-----------------------------------------------------------------------
Key: JBMESSAGING-542
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-542
Project: JBoss Messaging
Issue Type: Bug
Components: JMS Facade
Affects Versions: 1.0.1.CR4
Reporter: Ovidiu Feodorov
Assigned To: Ovidiu Feodorov
Fix For: 1.2.0.Alpha1, 1.0.1.CR5
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira