Search Interview Questions
Question: I have 2 session beans sb1 & sb2. In session bean 2 there is a bussiness exception occurs. If I don't want to rollback the transaction in sb1 which declartive transaction attribute I have to use in both beans?
Answer: SB2's transaction attribute should be either "Requires New" or "Not Supported". SB1 can be run in any transaction. It doesn't matter.
|
|||||||||||
Question: I have 2 session beans sb1 & sb2. In session bean 2 there is a bussiness exception occurs. If I don't want to rollback the transaction in sb1 which declartive transaction attribute I have to use in both beans? Answer: SB2's transaction attribute should be either "Requires New" or "Not Supported". SB1 can be run in any transaction. It doesn't matter. If you have the better answer, then send it to us. We will display your answer after the approval Rules to Post Answers in CoolInterview.com:-
|
Related Questions | ||
How to invoke servlet from ejb components? |
|
|
How Non Java Client access EJB. |
|
|
What is the difference between normal Java object and EJB? |
|
|
What is the difference between JavaBean and EJB? |
|
|
What is EJB? |
|
|
What is Session Bean. What are the various types of Session Bean? |
|
|
What is the difference between Stateful session bean and Stateless session bean? |
|
|
What is the life cycle of Stateful session bean? |
|
|
What is the life cycle of Stateless session bean? |
|
|
What are the call back methods in Session bean? |
|
|
When you will chose Stateful session bean and Stateless session bean? |
|
|
What is Entity Bean. What are the various types of Entity Bean? |
|
|
What is the difference between CMP and BMP? |
|
|
What is the lifecycle of Entity Bean? |
|
|
What are the call back methods in Entity bean? |
|
|
When you will chose CMP and BMP? |
|
|
What are advantages and disadvantages of CMP and BMP? |
|
|
What is difference between EJB 1.1 and EJB 2.0? |
|
|
What is Message Driven Bean? |
|
|
What is the life cycle of MDB? |
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All EJB Interview Questions & Answers - Exam Mode / Learning Mode
India News Network |