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

HFEJB Transaction attributes

 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers.
I am confused abot the the answer on p 521 in HFEJB.
Q. What's true when specifying transaction attributes in the DD?
One of the correct answers: For session beans, transaction attributes can be applied only to methods in the bean's component interface.

But this is not correct. Transaction attributes for the session beans must be declared not for all methods in the component interface, but only for bussiness methods in it. We have not to declare attributes for methods from EJBObject interface.
Am I right?

P.S. There is nothing about it in errata.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that they're thinking of/refering to business methods in the component interface. Because the EJBObject interface isn't referred to as the component interface.

HTH.
 
Kalidoss Sivasamy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the real exam I don't believe there will be any ambiguity in the questions/answers. In all the mock exams, I see the terminologies and the wordings are confusing at times.
 
amol deshpande
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>For session beans, transaction attributes can be applied only to methods in >the bean's component interface.
>
Hi there,
what the question is talking about is that Tx attributes can be applied ONLY to Component methods....(and not to home methods). Its not talking about Only Business methods or interface methods...(i think its trying to distinguish between component/home interface here.)
And since business methods ARE there in component interface, no problems here in this choice.
Amol.
 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you all guys.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic