EASC and transactions

at 2005-11-28 in EASC by friebe (0 comments)

The EASC API now supports transactions. Apart from Java, where a remote transaction is begun by performing a lookup on UserTransaction as follows:

  UserTransaction tx= (UserTransaction)((new InitialContext()).lookup("UserTransaction"));
tx.begin();
// ...
tx.commit(); // or tx.rollback();
..., the XP equivalent to this is more similar to the syntax used in the rdbms API:
  $remote= &Remote::forName('...');
$tx= &$remote->begin(new UserTransaction());
// ...
$tx->commit(); // or $tx->rollback();



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «EASC».