EJB interview questions
- what are Container-Managed Transactional attributes ? view answer
- What's difference between httpsession and EJB session bean ? view answer
- What are the Differences between EJB 3.0 and EJB 2.1? view answer
- Q. what are Container-Managed Transactional arributes ? view answer
- What is the default transaction attribute for an EJB? view answer
- Difference between SessionBean remove() and EntityBean remove() method? view answer
- Why do we have a remove method in both EJBHome and EJBObject? view answer
- Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB? view answer
- What is the difference between a ?Coarse Grained? Entity Bean and a ?Fine Grained? Entity Bean? view answer
- What are the Interfaces need to create to implement Session Bean with Exmaple? view answer
- What are the parameters must follow for Session Bean ? view answer
- What are the callbacks method in Session Bean ? view answer
- What are the ways for a client application to get an EJB object?
view answer
- What is handle and why it is used in EJB? view answer
- What is an EJB Context? view answer
- Implement Local and Remote Interfaces in EJB? view answer
- How can I call one EJB from inside of another EJB?
view answer
- What is the difference between Message Driven Beans and Stateless Session beans? view answer
- What happens if remove( ) is never invoked on a session bean? view answer
- Can you control when passivation occurs?
view answer
- Can the primary key in the entity bean be a Java primitive type such as int?
view answer
- The EJB container implements the EJBHome and EJBObject classes. For every request from a unique client, does the container create a separate instance of the generated EJBHome and EJBObject classes?
view answer
- How can i maintain a user session between servlets and stateful session ejbs? view answer
- What's difference between Servlet/JSP session and EJB session view answer
- Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
view answer
- How to call any EJB from a servlet/JSP/Java Client? view answer
- What are transaction isolation levels in EJB?
view answer
- What are transaction attributes?
view answer
- What is bean managed transaction?
view answer
- Can Entity Beans have no create() methods?
view answer
- What are the callback methods in Entity beans?
view answer
- What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP) ?
view answer
- What are the methods of Entity Bean?
view answer
- What is Entity Bean?
view answer
- What is Session Bean?
view answer
- What are the different kinds of enterprise beans?
view answer
|
!!! EJB interview questions !!!
Q. what are Container-Managed Transactional arributes ?
NotSupported
The bean is not involved in a transaction. If the bean invoker calls the bean while involved in a transaction, the invoker's transaction is suspended, the bean executes, and when the bean returns, the invoker's transaction is resumed.
Required
The bean must be involved in a transaction. If the invoker is involved in a transaction, the bean uses the invoker's transaction. If the invoker is not involved in a transaction, the container starts a new transaction for the bean.
Supports
Whatever transactional state that the invoker is involved in is used for the bean. If the invoker has begun a transaction, the invoker's transaction context is used by the bean. If the invoker is not involved in a transaction, neither is the bean.
RequiresNew
Whether or not the invoker is involved in a transaction, this bean starts a new transaction that exists only for itself. If the invoker calls while involved in a transaction, the invoker's transaction is suspended until the bean completes.
Mandatory
The invoker must be involved in a transaction before invoking this bean. The bean uses the invoker's transaction context.
Never
The bean is not involved in a transaction. Furthermore, the invoker cannot be involved in a transaction when calling the bean. If the invoker is involved in a transaction, a RemoteException is thrown.
|
Suggested Jobs More Jobs >>
|