[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-542) Closing connection inside MessageListener's onMessage() causes deadlock
Ovidiu Feodorov (JIRA)
jira-events at jboss.com
Mon Sep 11 20:39:30 EDT 2006
[ http://jira.jboss.com/jira/browse/JBMESSAGING-542?page=comments#action_12343170 ]
Ovidiu Feodorov commented on JBMESSAGING-542:
---------------------------------------------
Palliative fix:
if (Thread.currentThread().equals(sessionExecutor.getThread()))
{
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
More information about the jboss-jira
mailing list