Urgent - Singleton Session Beans


EJB design: Urgent - Singleton Session Beans

  1. Urgent - Singleton Session Beans (3 messages)

    Can anyone tell me how to write a singleton session bean ?
  2. 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.

  3. sorry that should have read can't not can'
  4. Thanks a lot.