Dear all, I am confused with this rule. The chapter about stateless session bean says ejbCreate() and ejbRemove cannot access antoher bean's methods and resource manager. Why a stateful session bean can, but a stateless session bean cannot? Thanks~
To have this access you have to be in a transactional context OR have a client security context. In ejbCreate and ejbRemove in a session bean you do not have a transactional context. In a stateful session bean you do have a client security context in ejbCreate and ejbRemove as opposed to in a stateless session bean. That gives you access in a stateful session bean, but not in a stateless.
/Hope it helps Magnus [ January 29, 2004: Message edited by: Magnus Stattin ]
To have this access you have to be in a transactional context OR have a client security context.
I can not find any description about this concept in the ejb specification. in my mind, the resource manager is the sth like connection factory, then it seems no reason to disallowed the method to use it and if it can not be used it in staeless bean, then how can it access the database?
Sorry, I am new to EJB, please rectify me.
SCJP 1.4<br />SCWCD 1.3<br />SCJD<br />SCBCD<br />IBM Xml Cert in progress