JBoss Community

Is it possible to attach an object to active stateless session bean

created by Christian Groove in EJB3 - View the full discussion

Dear sirs,

 

this question is EJB3 related and does not only regard JBoss.

I would like to assign/register an object to a running method

of a session bean.

 

This object is session related and its  lifetime is limited to

execution of a EJB method. During execution, any successive

method call should be able to access this object without

the need of passing it through the parameter.

 

One may propose an associaive Array with the thread.id as a key

and a object reference as a value. On JSF i would use a registered

bean (request level).

 

Does somebody has any idea how to provide this in a

stateless session bean?

!

Reply to this message by going to Community

Start a new discussion in EJB3 at Community