Hi all,

I just curious... Does jboss support JTA?

Can I use such a transaction in my application?

        try {
          utx = (UserTransaction)
            PortableRemoteObject.narrow(initialContext.lookup(
              "javax.transaction.UserTransaction"),
              UserTransaction.class);
        } catch (Exception e) {
          System.err.println("Cannot lookup UserTransaction: "+e);
          System.exit(2);
        }

        ... bla bla bla ... 
        // a1 & a2 are the accounts 

        try {
          double value = 100.00;
          utx.begin();
          a1.setBalance(value);
          a2.setBalance(-value);
          utx.commit();
        } catch (Exception e) {
          System.err.println("exception during 1st Tx: " + e);
          System.exit(2);
        }

I have to finish the article in a couple of days.
If you want me to write something particular about 
jboss, just tell me (maybe about jboss in JavaOne?)

Okay, thank's a lot!
-- 
---------------------------------------------------
Blasius Lofi Dewanto
---------------------------------------------------
Homepage : http://members.tripod.com/~dewanto
E-Mail   : [EMAIL PROTECTED]
ICQ      : 39343280
---------------------------------------------------


__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! Auktionen - gleich ausprobieren - http://auktionen.yahoo.de


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to