| java.lang.Object org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor.SFSBSimpleBeanOverrided
SFSBSimpleBeanOverrided | public class SFSBSimpleBeanOverrided implements ItfSimpleBeanOverridedLocal,ItfSimpleBeanOverridedRemote(Code) | | Used to verify if the deployment descriptor overrides the annotation. The
deployment descriptor defines:
- The session bean as stateful. The session type cannot be overrided (page 491-FINAL REALEASE);
- The bean name: SLSBSimpleBeanOverrideLocal;
- The transaction
type as Bean;
- The local interface: ItfSimpleBeanOverridedLocal;
- The remote interface: ItfSimpleBeanOverridedRemote.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | openTransaction() Opens a transaction without close. | public void | verifyBMT() Verifies if the bean has a bean-managed transaction. |
openTransaction | public void openTransaction() throws NamingException, NotSupportedException, SystemException(Code) | | Opens a transaction without close. If the bean is stateless, this method
call will throw an EJBException.However, for a stateful the method will
be executed without problem.
throws: NamingException - if a problem to get the transaction occurs. throws: NotSupportedException - if the bean is already associated with a transaction. throws: SystemException - if an unexpected error occurs during the transaction. |
verifyBMT | public void verifyBMT() throws IllegalStateException, SecurityException, HeuristicMixedException, HeuristicRollbackException, RollbackException, SystemException, NotSupportedException, NamingException(Code) | | Verifies if the bean has a bean-managed transaction. If the transaction
type is defined as container managed transaction, this method must throw
an exception.
throws: IllegalStateException - if begin or commit is not permit throws: SecurityException - if an unexpected error occurs. throws: HeuristicMixedException - if an unexpected error occurs. throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. throws: HeuristicRollbackException - if a heuristic decision was made andsome relevant update was rolled back. throws: RollbackException - if the transaction was rolled back instead ofcommitted. throws: HeuristicMixedException - if a heuristic decision was made and somerelevant update was commited and others rolled back. |
|
|