What are the attributes of transaction in EJB?

devquora
devquora

Posted On: Feb 22, 2018

 

Here are some transaction attributes

  1. Required: No new transaction is created when the required attributed is linked to the transaction.
  2. Requires New: There is always present the addition of a new transaction when this attributed is linked to the transaction.
  3. Not Supported: If the method is linked to this attribute then the method does not remain part of the transaction
  4. Supported: It acts in the conditional case that depends on the calling component. If the calling element is linked with transaction then the method act as a required attribute. If the calling component is not linked with the transaction then the method acts as NOT SUPPORTED.
  5. Mandatory: The method is always called from the calling element transaction context when the method is linked to this attribute.
  6. Never: The method is never called from the calling element transaction context when the method is linked to this attribute.

Support is the default transaction value of EJB.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    EJB Interview Questions

    What is EJB?

    EJB stands for Enterprise java bean is a server-side software that is used to construct the module of enterprise software...

    EJB Interview Questions

    What are the various types of Entrepreneur java bean?

    Entity Bean: The object that is planned with the database is referred to an entity bean. It is used to execute..

    EJB Interview Questions

    What are the various types of Entity beam?

    CMP Entity bean: It is defined as Container Managed Persistence. It is the complex type of bean and very effective for the develope..