[jboss-jira] [JBoss JIRA] Commented: (JBESB-256) An explicit Thread.sleep should not be required between starting the message aware listeners, and starting the gateway listeners

Tom Fennelly (JIRA) jira-events at jboss.com
Fri Dec 1 07:34:55 EST 2006


    [ http://jira.jboss.com/jira/browse/JBESB-256?page=comments#action_12348024 ] 
            
Tom Fennelly commented on JBESB-256:
------------------------------------

Just to add there - basically what I'm proposing is to make the classes construction + thread launch + wait-until-ready an atomic operation.  One way of doing that is what I suggested there.

> An explicit Thread.sleep should not be required between starting the message aware listeners, and starting the gateway listeners
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBESB-256
>                 URL: http://jira.jboss.com/jira/browse/JBESB-256
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: ESB Core
>    Affects Versions: 4.0 RC1
>            Reporter: Tom Fennelly
>         Assigned To: Mark Little
>            Priority: Critical
>             Fix For: 4.0
>
>
> You have to manually enter a Thread.sleep between launching EsbListenerController in a thread and launching GatewayListenerController.  I spent ages trying to work out an error until I was let in on the little secret.  If EsbListenerController is this scencitive, it should manage it's startup such that the caller blocks until EsbListenerController is fully up and ready.  This would be a piece of * to do.

-- 
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