[jboss-jira] [JBoss JIRA] (AS7-2573) Remove workaround for race on datasource lookup
Thomas Diesler (Created) (JIRA)
jira-events at lists.jboss.org
Thu Nov 10 03:39:45 EST 2011
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: 7.1.0.CR1
// [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);
--
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