Hi Rohit, I think what they mean on page 228 is calling methods apart from getting user transaction.In the spec it we see on page 90 for business methods they have specifically mentioned UserTransaction methods apart from getUserTransaction. Even though we can getUserTransaction we can't call methods.That is what it seem to imply.Rohit since you seem to have implemented the code why don't just try out this and try calling methods?
With Regards,<br /> Rajan<br />"Java Rocks"
posted 14 years ago
I see it in this way. The UserTransaction is avaliable at java:comp/UserTransaction namespace in bean env and since in ejbcreate the Jndi access is there you can get a reference to UserTransaction. But since there is no security info available at this juncture for Stateless beans one cannot call methods on UserTransaction reference to start a valid transaction. The same applies to MDB ejCreate and ejbRemove.