org.objectweb.jotm

Class TransactionFactoryImpl

Implemented Interfaces:
Remote, TransactionFactory

public class TransactionFactoryImpl
extends PortableRemoteObject
implements TransactionFactory

Constructor Summary

TransactionFactoryImpl()
Constructor of the Transaction Factory

Method Summary

Control
create(int timeout)
Create a new Control implementation on JTM.
String
getHostName()
management method
int
getPortNumber()
management method
Control
recreate(TransactionContext ctx)
Recreate locally a Control object for an existing transaction.

Constructor Details

TransactionFactoryImpl

public TransactionFactoryImpl()
            throws RemoteException
Constructor of the Transaction Factory

Method Details

create

public Control create(int timeout)
            throws RemoteException
Create a new Control implementation on JTM.
Specified by:
create in interface TransactionFactory

Returns:
The Control object for the transaction


getHostName

public String getHostName()
            throws RemoteException
management method
Specified by:
getHostName in interface TransactionFactory

Returns:
the local host name


getPortNumber

public int getPortNumber()
            throws RemoteException
management method
Specified by:
getPortNumber in interface TransactionFactory

Returns:
the port number


recreate

public Control recreate(TransactionContext ctx)
            throws RemoteException
Recreate locally a Control object for an existing transaction. It is possible to call recreate for a transaction already known. In this case, recreate simply returns the existing Control object.
Specified by:
recreate in interface TransactionFactory

Returns:
The Control object for the transaction