How can i configure the deployment descriptor?

I have a question as follows:

I use a SessionBean to invoke two EntityBean's methods,

and i want these two methods in one transaction context.

I mean i want them rollback or commit together.

for example :

Session bean method sessionTest(),invoke EntityBean methods test1()

and test2(),if test1() is Succeed and test2() is failed , i want

rollback these two methods together.

How can i configure the deployment descriptor?

[492 byte] By [heyanchun] at [2007-9-26 11:59:37]
# 1
1. start emacs and load your DD .2. set the SB method to requires new3. set the EB methods to either supports, mandatory or required. The one to select depends on your other use cases.
rockhopper at 2007-7-2 2:21:31 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
Hi,rockhopper I try this.But when the first method test1() is succeed, and the second is failed.The container will commit the first one,and rollback the second one.
heyanchun at 2007-7-2 2:21:32 > top of Java-index,Other Topics,Patterns & OO Design...