Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

HFEJB Transaction attributes

 
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.
 
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.
 
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.
 
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic