Originally posted by Norm Mattson:
Paul,
I downloaded your SCBCD Exam Study Kit ebook a few weeks ago and am about half way through it now. After reading the section on session beans there is one topic that I'm not sure I fully understand. Could you explain why resource manager access and access to other beans is permitted in an ejbCreate method for stateful session beans but is prohibited for stateless session beans?
Thanks
[ July 27, 2005: Message edited by: Norm Mattson ]
Norm:
Another way of saying what Vicky said is:
Accessing resource managers (and also other enterprise beans for that matter) is prohibited in those session bean methods for which the container (at call time) does not have a meaningful transaction context or client security context. It's very important to remember that the creation and removal of a stateless session bean does not depend upon a client call.
Hope it helps.
Norm, also make sure you check the errata at Author Online forum which can be accessed from:
http://www.manning.com/sanghera
Paul Sanghera, Ph.D.<br />SCBCD, SCJP, Project+, Network+, Linux+, CNA.