• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

transaction attributes

 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please I didn't clear what you mention..
Please explain it little clear i answer for you later
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic