I have a MDB which has an @EJB annotation for the Stateless Session bean. I see multiple instances of MDB's created but they all access only one instance of Stateless Session beans. I would have expected a different instance of Stateless Bean for each instance of MDB. I am printing code of the objects.
@MessageDrivenBean
public class CalculatorMDB {
@EJB Calculator cal;
}
Am I miss understanding anything?. Is there a way to force a different instance of stateless bean for each instance of MDB? The application server is
Jboss.
Suggestions appreciated.
-Ahmed