Hi ranchers
Following problem buzzs me,
Stateless Bean creation is different for container and client:
1. Container creation - newInstance >> setSessionContext >> ejbCreate
Bean stays in pool. It's associated with Home, but NO EJBObject(Component interface not created yet)
2. Client creation - create() >> new EJBObject
Bean things which we can do in ejbCreate are:
a. sessionContext .getEJBHome
b. sessionContext .getEJBObject
c. JNDI access to
java:comp/env
My question is:
How is possible in ejbCreate to access EJBObject, when there is no Component created yet?
Bean is in pool, there should be one Home and no Component yet. EJBObject is created from client.
Thank you for your time