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

container-transaction tag question

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Can someone please answer this for me...

Thanks!
Gemini
 
Stefan Guilhen
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic