I *think* Danny implied: <Your-Session-Bean> {
// what ever your store is private static <SomeStoreImpl> store = <SomeStoreImpl>.getInstance(); public void store(String key, Object value) throws RemoteException { store.put(key, value); } } -----Original Message----- From: Pedro Salazar [mailto:[EMAIL PROTECTED] Sent: 04 December 2003 17:17 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] share stateful session beans On Thu, 2003-12-04 at 16:29, Yates, Danny wrote: > A Stateful Session Bean is specifically intended to have one instance > allocated to each client. > > Your best option is to use a Stateless Session Bean, which provides the > interface, and have it delegate to a POJO which maintains the state and > is created using some variation of the Singleton pattern. > > -- > Danny Yates > Could you explain me better the theory of POJO inside stateless session beans? I think I know what is intended to do, but I don't know how to implement it. A little example would be more than enough... regards, Pedro Salazar. -- -PS ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user