p xgodsa

Greenhorn
+ Follow
since Dec 11, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by p xgodsa

Can someone put some more light on this topic.
Because (probably I'm wrong.., but)..., I think that:
Required is also relative to the transaction context of the client (at least as much as RequiredNew). So what's the difference here ?

"Required - If the client is running within a transaction and invokes the enterprise bean's method, the method executes within the client's transaction. If the client is not associated with a transaction, the container starts a new transaction before running the method."

"RequiredNew - If the client is running within a transaction and invokes the enterprise bean's method, the container takes the following steps:

1. Suspends the client's transaction
2. Starts a new transaction
3. Delegates the call to the method
4. Resumes the client's transaction after the method completes

If the client is not associated with a transaction, the container starts a new transaction before running the method. "

So.., for me it's starnge that I can use Required.., but not RequiredNew.
[ December 11, 2008: Message edited by: p xgodsa ]