How Can I use a same Stateful SessionBean from serval JSP ?

I can pass some data by session between two JSP or between JSP and EJP ,However I don't whether I can use /share some data get from a EJB(stateful Session)in several different JSPs ?Any help would be greatly appreciate!
[255 byte] By [lml919] at [2007-9-26 3:35:21]
# 1

hi,

If you want to use same sessionbean in several jsp pages, get the handle for the homeobject associated with the ejb by calling getHandle() on home. Since handle is a serializable object you can place in session object. In jsp get the handle from the session object and type cast it into corresponding classtype and call getEJBObject() on the handle. You will get the reference of the same stateful session object reference.

rag_pan at 2007-6-29 12:05:38 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...