Could anyone tell me how can I reload or revive a XAResource in JBoss.
I am coding an application server which communicate with another Server through socket. After restarted Server, I need to reload or revive the XAResource of the application server(JBoss). I have no idea how to deal with the expired XAResource.
In weblogic, I can calling
weblogic.transaction.TxHelper.getTransactionManager().unregisterResource(xares.getClass().getName());
weblogic.transaction.TxHelper.getTransactionManager().registerDynamicResource(xares.getClass().getName(), xares);
There is no equivalent within JBoss.
JBoss just uses the spec defined enlistResource().