[jboss-user] [EJB3] - Is it possible to attach an object to active stateless session bean

Christian Groove do-not-reply at jboss.com
Sat Jan 22 07:56:47 EST 2011


Christian Groove [http://community.jboss.org/people/TheGroove] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/582496#582496

--------------------------------------------------------------
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
[http://community.jboss.org/message/582496#582496]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110122/0279e6cb/attachment.html 


More information about the jboss-user mailing list