What are the attributes of transaction in ejb?



What are the attributes of transaction in ejb?..

Answer / Umesh

{"attributes": "In EJB, transactions can be configured using TransactionAttribute annotation. Some common attributes include: Required (indicates that a transaction is necessary), RequiredNew (indicates that a new transaction should be started for each method invocation), RequiredNew or Required (indicates that if a transaction already exists, it will be joined; otherwise, a new one will be started), NotSupported (indicates that the container will not start a new transaction but will participate in any existing transaction), Mandatory (indicates that a transaction is necessary and must exist when the method is invoked), Never (indicates that the method should never be executed within a transaction))"}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

What is beaninfo ?

1 Answers  


What is Introspection ?

2 Answers   Wipro,


Differentiate Phantom from Un-repeatable?

1 Answers  


Can Container managed Bean-Managed Persistence ?

0 Answers   Sony,


Define ripple effect?

1 Answers  


Difference between javaBeans and Enterprise JavaBeans?

1 Answers   Indotech, Tech Mahindra,


what are the classes you used in Beans?

1 Answers  


Can you be deported if you are stateless?

1 Answers  


How does ejbs work?

1 Answers  


can u explain about design patterns like singleton,builder,factory

1 Answers   EdgeSoft,


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

1 Answers  


Why do we need ejb in java?

1 Answers  


Categories