This has already been done in jboss-head for transaction inflow in jca. cvs ... co jboss-head
On Sun, 2004-05-16 at 15:14, Dasarath Weeratunge wrote: > Hi > > I'm trying to expose the 2PC implementation of > JBoss/tm so that I can use it in a > > ws-at(WS-AtomicTransaction) implementation that I'm > working on. > > In the present JBoss/tm impl, TransactionImpl.commit > carries out 2PC. However, for > > distriburted transactions support this needs to be > split into two seperate prepare() and > > commit() methods and exposed to the outside so that an > external coordinator like ws-at can > > control the protocol. > > I seperated the commit method as above and included > three new methods in > > org.jboss.tm.TransactionImpl : __prepare(), > __commit(), __rollback(). > > I have attached the modified code below. > > I tested the code and it seems to work but I'm not > sure what other issues might have to be > > taken into account here. The three new methods are > found at the end of the class definition > > and appart from these changes I made no changes to the > existing methods. > > Can you guys please tell me whether the new __prepare, > __commit/__rollback sequence would > > cause any trouble or whether there are any problems in > the way I've done the split with > > regard to the rest of the class/package. > > I'm using jboss-3.2.4RC2 build(custom). > > > Thanks. > > > > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! - Internet access at a great low price. > http://promo.yahoo.com/sbc/ -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Inc. xxxxxxxxxxxxxxxxxxxxxxxx -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Inc. xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user