• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

container-transaction tag question

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AS per Milkani's tutorial

http://java.boot.by/bcd-guide/ch11s02.html

--
It is required that all the methods specified in a single container-transaction element be methods of the SAME enterprise bean.

Whereas as per HFEJB
page 504

option 2 is that
we are defining methods from various beans together in one
<container-transaction> tag which have got same <trans-attribute>

Please explin me what is the point made in Milkani tutorial

Thanks,
Gemini
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please answer this for me...

Thanks!
Gemini
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HF-EJB is correct. The specification does not say the methods must be from the same bean.
 
Stefan Guilhen
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Stefan Guilhen:
HF-EJB is correct. The specification does not say the methods must be from the same bean.



Woa.. my bad here. As ks wong properly pointed out in this thread the specification does really say that all the methods declared in a single container-transaction element are required to be from the same enterprise bean.
I personally think this is a little weird since you could use multiple method tags to describe methods from different enterprise beans because the method tag has an ejb-name tag that indicates the ejb in which the method can be found. I cannot think of any reason why the container-transaction would require all methods to be from the same ejb. Any ideas?

Apologies for the wrong info in the previous post,
Stefan
[ March 22, 2005: Message edited by: Stefan Guilhen ]
 
We don't have time to be charming! Quick, read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic