[jboss-jira] [JBoss JIRA] (AS7-2573) Remove workaround for race on datasource lookup
Jason Greene (JIRA)
jira-events at lists.jboss.org
Tue Jan 24 15:56:19 EST 2012
[ https://issues.jboss.org/browse/AS7-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene closed AS7-2573.
-----------------------------
Resolution: Deferred
Fix Version/s: No Release
(was: 7.1.0.Final)
We have decided not to officially distribute the JAXR/UDDI server portion in AS7 indefinitely (just client). This may be revisited in the future.
> Remove workaround for race on datasource lookup
> -----------------------------------------------
>
> Key: AS7-2573
> URL: https://issues.jboss.org/browse/AS7-2573
> Project: Application Server 7
> Issue Type: Task
> Components: JAXR
> Reporter: Thomas Diesler
> Assignee: Kurt Stam
> Fix For: No Release
>
>
> {code}
> // [TODO] AS7-2302 Potential race condition on DataSource lookup
> long timeout = 2000;
> while (datasource == null && timeout > 0) {
> try {
> datasource = (DataSource) namingStore.lookup(new CompositeName(lookup.substring(5)));
> } catch (Exception ex) {
> Thread.sleep(200);
> timeout -= 200;
> }
> }
> if (datasource == null)
> throw new IllegalStateException("Cannot obtain data source: " + lookup);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list