ResourceAdapter.getXAResources is for message inflow recovery, see JCA1.5 Section 12.5.2 The activation specs must be persisted for recovery purposes.
For outbound it needs to do ManagedConnection.getXAResource(). For the Subject problem see the special case mentioned in JCA1.5 Section 6.5.3.5 This looks insecure to me (and probably not supported by some XAResources) so we may need to add configuration for a recovery user/password where this cannot be determined from the JCA config. The fundamental problem is that the transaction manager needs to get the list of ResourceAdapters/ManagedConnectionFactorys to perform recovery. But this cannot be done using a <depends-list> because the ResourceAdapter needs a reference to the transaction manager before it can start (chicken and egg). 1) For the XATerminator - RARs could try to use this during start() 2) For the tx-connection-factory/tx datasources - not strictly necessary since we don't need the connection manager or pool for recovery So what is required is that there be a separate recovery MBean that has a <depends-list> of the ResourceAdapters. This will allow the following startup ordering: 1) Transaction manager 2) Resource Adapters 3) Recovery manager Care must be taken such that the recovery manager only tries to recover transactions that were from a previous instances. Using either a mark in the log of when it was restarted or by recording the jvm id in the log record? We also want to fix this tight coupling of the TM and RARs to make this simpler. We can then delay some processes to make the recovery occur before services become available 1) Transaction manager 2) Resource Adapters 3) Recovery manager 4) Start WorkManager 5) Bind ConnectionFactorys to JNDI 6) Activate MDB activations Also bear in mind that JBossMQ and other services(?) use a DataSource to persist data. i.e. one XAResource uses another one as a delegate. Although in this case, the delegate XAResource should never be taking part in two phase commit!? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860438#3860438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860438 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
