Lets saya bean method method1 invokes another bean method method2 of same bean.
Q1) Can I assume that both methods will execute under transaction attributes of method1 irrespective of transaction attributes of method2 as long as method2 is not invoked on a ejbobject (like a bean client) but directly invoked like some method of some class invoking another submethod?
Q2) Also can I assume method1 invoking method2 on a ejbobject and not directly will only be possible with entity beans where re-entrance is allowed?
Hi, As far as your first question is concerned answers is NO. It depends on which transaction attribute is set for method2. Your assumption will only be valid if it is set either Required or Mandatory or Supports . Can you please elaborate your second question?
Do not set lab on fire. Or this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!