Obtaining a list of all stateful sessionbeans

Discussions

EJB design: Obtaining a list of all stateful sessionbeans

  1. Obtaining a list of all stateful sessionbeans (2 messages)

    What we have is a client which keeps a connection to a stateful session bean. I'm trying to create some kind of callback so I can send messages to those clients.
    Therefore I need a list of all session beans of a certain type. Is there a way to get this list from the container (In our case: JBoss) or perhaps another way of achieving this ?
  2. using JMS.
  3. The above poster suggests JMS. A possible way to do this using JMS would be to use the publish/subscribe model, where your session bean publishes to a JMS Topic and all your clients subscribe to that Topic.