• 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

HFEJB Transaction attributes

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks you all guys.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic