[jboss-jira] [JBoss JIRA] Closed: (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
Wed Dec 6 05:34:56 EST 2006


     [ http://jira.jboss.com/jira/browse/JBESB-256?page=all ]

Tom Fennelly closed JBESB-256.
------------------------------

    Resolution: Done

Done.

The only way to get your hands on an instance of EsbListenerController now is via the EsbListenerControllerFactory (it has to factory methods).  It makes sure that before it returns, the controller is in a state of "Ready" (or an error/shutdown state).  The controller itself will not transition into a state of "Ready" until all listeners under its control are in a state of "Ready".

> 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