14 abril 2009

@Transactional

seam_reference-2.1.1.GA.pdf line 525 (search for '@Transactional')

30.5. Annotations for use with Seam JavaBean
components in a J2EE environment
Seam provides an annotation that lets you force a rollback of the JTA transaction for certain action
listener outcomes.
@Transactional
@Transactional
Specifies that a JavaBean component should have a similar transactional behavior to the
default behavior of a session bean component. ie. method invocations should take place in
a transaction, and if no transaction exists when the method is called, a transaction will be
started just for that method. This annotation may be applied at either class or method level.
Do not use this annotation on EJB 3.0 components, use @TransactionAttribute!
@ApplicationException
@ApplicationException
Synonym for javax.ejb.ApplicationException, for use in a pre Java EE 5 environment. Applied
to an exception to denote that it is an application exception and should be reported to the
client directly(i.e., unwrapped).
Do not use this annotation on EJB 3.0 components, use
@javax.ejb.ApplicationException instead.
• rollback — by default false, if true this exception should set the transaction to rollback
only

No hay comentarios: