EJB_nestes_transaction ?

M

marko

Let's say I have this situation:

Bean1{
someMethodA(){
someMethodB();
}

Bean2
ejb.transaction = "requiresNew"
{
someMethodB();
}

Transaction TX1 starts by calling someMethodA(), and that that transaction
is stopped when someMethodB() is called because of the requiresNex
attribute, right ?
I want to know when TX1 is suspended because od TX2 is created what about
duration od TX1. If my transaction timeout for BEAN1 is set to 120 sec, and
TX2 last for let's say 121 sec, what is going to happen ?


Thanks.
 
J

Jan Thomä

Transaction TX1 starts by calling someMethodA(), and that that transaction
is stopped when someMethodB() is called because of the requiresNex
attribute, right ?
I want to know when TX1 is suspended because od TX2 is created what about
duration od TX1. If my transaction timeout for BEAN1 is set to 120 sec, and
TX2 last for let's say 121 sec, what is going to happen ?


Thanks.

This explains what exactly will happen:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Transaction3.html

Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top