org.objectweb.jotm
Class TransactionFactoryImpl

java.lang.Object
  |
  +--javax.rmi.PortableRemoteObject
        |
        +--org.objectweb.jotm.TransactionFactoryImpl
All 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.
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionFactoryImpl

public TransactionFactoryImpl()
                       throws RemoteException
Constructor of the Transaction Factory

Method Detail

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
RemoteException

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
RemoteException

getPortNumber

public int getPortNumber()
                  throws RemoteException
management method

Specified by:
getPortNumber in interface TransactionFactory
Returns:
the port number
RemoteException

getHostName

public String getHostName()
                   throws RemoteException
management method

Specified by:
getHostName in interface TransactionFactory
Returns:
the local host name
RemoteException