[jbossts-issues] [JBoss JIRA] (JBTM-1917) XTS*RecoveryManager.getRecoveryManager() can return null if application deployed before XTS starts
Paul Robinson (JIRA)
jira-events at lists.jboss.org
Wed Sep 11 04:39:04 EDT 2013
Paul Robinson created JBTM-1917:
-----------------------------------
Summary: XTS*RecoveryManager.getRecoveryManager() can return null if application deployed before XTS starts
Key: JBTM-1917
URL: https://issues.jboss.org/browse/JBTM-1917
Project: JBoss Transaction Manager
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: XTS
Reporter: Paul Robinson
Assignee: Gytis Trikleris
Priority: Minor
Fix For: 5.0.0.Final
The problem is that there is currently no way of specifying that an application depends on XTS. Therefore it's possible that when the server starts, that the application can be deployed before XTS is started, thus a call to XTSBARecoveryManager.getRecoveryManager() or XTSATRecoveryManager.getRecoveryManager() will return null.
The workaround is to poll for the RecoveryManager until it is not null.
The fix is to have the RecoveryManager injected into the application via a Deployment Unit Processor that has a dependency on the XTS service.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossts-issues
mailing list