I think that with the connector 1.5 transaction import facilities we can
now make the jboss tm distributed pretty easily.  It still won't really be
suitable for bank-type applications until it does logging and recovery, but
these are really independent from distribution.

Lets say we have 2 jboss servers A and B.

I think what we need is to bind in A's jndi a proxy that includes a tx
interceptor that picks up the tx context, enrolls an XAResource
representing server B to get an xid branch for the tx on it, and sends the
xid with the request.  

On the receiving end, we create an ExecutionContext with the xid, a Work
instance to do the invocation, and submit it to a WorkManager.

When it's time to commit, the proxy's XAResource on A gets the
prepare/commit/rollback request with the appropriate xid and forwards it to
the XATerminator on B.


Does this seem about right?

What goes in between A and B?  Does it make any difference which invoker we
use?

How does this relate to the TransactionPropagationContext stuff we have
now?

Would it be appropriate to modify the client UserTransaction implementation
to generate an xid locally and use the XATerminator interface for ending
the transaction?

Thanks
david jencks


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to