|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.test.ejb.GreetingEJB
Sample EJB this should be a remote bean
| Constructor Summary | |
GreetingEJB()
Default constructor |
|
| Method Summary | |
void |
ejbActivate()
Implements / overrides ejbActivate |
void |
ejbCreate()
Implements ejb creation method for this session bean |
void |
ejbPassivate()
Implements / overrides ejbPassivate |
void |
ejbRemove()
Implements / overrides ejbRemove |
java.lang.String |
invokeJtaTransactionContext(java.lang.String name)
Invoke a test to verify operation of the virtual JTA platform transaction interface: the service manager JtaTransactionServiceManager,
the session factory
JtaTransactionSession,
and
the transaction context
JtaTransactionContext,
KISS: In order to verify the functionality of the
transaction service manager implementation
Ww do not use any JDBC or JConnector
transactional resource. |
protected java.lang.String |
invokeRequiresNewTransaction()
Test requires new transaction of the Jta Transaction Service Manager. |
java.lang.String |
makeHelloWorld(java.lang.String name)
Generate a greeting |
void |
setSessionContext(javax.ejb.SessionContext sessionContext)
Implements / overrides setSessionContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GreetingEJB()
| Method Detail |
public void setSessionContext(javax.ejb.SessionContext sessionContext)
throws javax.ejb.EJBException,
java.rmi.RemoteException
setSessionContext in interface javax.ejb.SessionBeansessionContext -
javax.ejb.EJBException
java.rmi.RemoteExceptionSessionBean.setSessionContext(javax.ejb.SessionContext)
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteExceptionSessionBean.ejbRemove()
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteExceptionSessionBean.ejbActivate()
public void ejbCreate()
throws javax.ejb.EJBException
javax.ejb.EJBException
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteExceptionSessionBean.ejbPassivate()public java.lang.String makeHelloWorld(java.lang.String name)
name - the name
public java.lang.String invokeJtaTransactionContext(java.lang.String name)
JtaTransactionServiceManager,
the session factory
JtaTransactionSession,
and
the transaction context
JtaTransactionContext,
KISS: In order to verify the functionality of the transaction service manager implementation Ww do not use any JDBC or JConnector transactional resource. In other empty transactions
name - an arbitary parameter
protected java.lang.String invokeRequiresNewTransaction()
SecondaryEJB
and call its business method.
This test should verify the suspension and resumption mechanism are being delegated to the real JTA provider, since the IoC container does not really perform these functions for us.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||