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 ?
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.