Recovering XA resources registered by user components

In this version of EAServer, you cannot directly recover XA resources that are registered by user components. However, you can enable EAServer to accomplish this task by using the following technique:

  1. Create a wrapper DataSource class; for example, WrapperDataSource.

  2. WrapperDataSource.getXAConnection() returns an XAConnection class that corresponds to the XA connection with the resource.

  3. Create an XA-type connection cache, and set its class name to the WrapperDataSource class that you created.

Once these steps are implemented, EAServer takes care of the recovery process. This is useful when using a third-party JMS service with XA resources.