views:

221

answers:

3

Hi,

How can i can achieve remote transaction while using Remote EJB (over RMI/IIOP or RMI/JRMP). Is that JBoss 4.0 support this kind of transaction or should i use jotm or atomikos?

Thanks in advance

A: 

From jboss.org. This example is from v. 3.2 but I know it works through v. 4.0.3

Ichorus
A: 

JBoss 4 is a certified J2EE 1.4 application server and thus supports client-controlled transaction which are part of the J2EE specification. In other words, JBoss provides a Transaction Manager, there is no need for a standalone transaction manager like JOTM, Atomikos, etc.

For the record, JBoss default transaction manager is based on Arjuna TS since JBoss 4.2 which is a rock solid technology.

See the chapter 4.2.3. UserTransaction Support for more details.

Pascal Thivent
A: 

There is no way to handle transactions from the client without using a TM on the client. The way to design apps is to call services on the server that handle that for you. All J2EE containers that include JTS/JTA (Ones that are more than just web app servers) will support single a two-phase transaction processing.

The client piece should be in charge of just doing presentation and possibly doing calculations as well as they pertain to displaying the data.

if you must use this strategy, go ahead use a Transaction Coordinator (TM) on the client like JOTM or Atomikos or even possibly JBOSS's JBoss transactions.

Romain Hippeau