EJB design: Urgent - Singleton Session Beans
Can anyone tell me how to write a singleton session bean ?
- Posted by: abioht meetei
- Posted on: June 29 2001 07:42 EDT
Basically you can'. Session bean pooling is beyond your control. You could implements a standard singleton but this will fall over in a clustered environment. If the object is read only then put it in the JNDI and have everyone read it from there. Otherwise you can create a netwirk singleton - just an RMI remote object and have everyone use the single instance remotely.
sorry that should have read can't not can'
Thanks a lot.