Hi,
I have an action class that calls three EJB methods. I want to run all these three method in a single transaction. How do I do it?
Thanks,
Venkat
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
0
Well, there should be a Business Delegate in the middle of your call to the business methods. Actions objects should never call directly on EJB methods...
v sat
Greenhorn
Joined: Sep 13, 2007
Posts: 7
posted
0
Thanks for the reply. I still have a doubt on how to implement this transction in the business facade layer?
If you have a session facade and a method which invokes these 3 methods, then you can annotate that method with @TransactionAttribute(REQUIRED). This is for CMT.
Otherwise, you should lookup the UserTransaction and handle it manually.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Calling three EJB methods in a single transaction