[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-999) Bridge startup should retry if remote destinations are not available
Howard Gao (JIRA)
jira-events at lists.jboss.org
Wed Dec 17 21:45:54 EST 2008
[ https://jira.jboss.org/jira/browse/JBMESSAGING-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12443254#action_12443254 ]
Howard Gao commented on JBMESSAGING-999:
----------------------------------------
Tim, in BridgeService.java, the startService() has a piece of the following code
Context icSource = new InitialContext(sourceProps);
Context icTarget = new InitialContext(targetProps);
Destination sourceDest = (Destination)icSource.lookup(sourceDestinationLookup);
Destination targetDest = (Destination)icTarget.lookup(targetDestinationLookup);
....
bridge.start();
if any of the lookup failed in exception, bridge.start() never get called, and the StartupFailureHandler will never get a chance to work. This is consistent with Tim's comments
>>It would still fail since the destination lookups are made from the BridgeService class before the Bridge is instantiated.
> Bridge startup should retry if remote destinations are not available
> --------------------------------------------------------------------
>
> Key: JBMESSAGING-999
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-999
> Project: JBoss Messaging
> Issue Type: Task
> Affects Versions: 1.4.0.GA
> Reporter: Tim Fox
> Assignee: Howard Gao
> Priority: Minor
> Fix For: 1.4.0.SP3.CP05, 1.4.2.GA
>
>
> Currently the bridge only retries connection creation after startup.
> If remote provider is not available at startup it will fail to start.
> We should change this by institutiing a retry at startup too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list