Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction attributes

 
Swamy Nathan
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dilip Gamage
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please I didn't clear what you mention..
Please explain it little clear i answer for you later
 
praveenK soni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic