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?
>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.
posted 15 years ago
Thanks you all guys.
SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
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