EJB3 - Inject a MDB into another MDB?
问题 Since a message driven bean is a type of EJB, I would expect that I would be able to inject one into another, but I am having issues. I have to MDBs and need to inject one into the other something like this: @MessageDriven(mappedName = "jms/QueueOne") public class MessageBeanOne { @EJB private EntityService service; @EJB private MessageBeanTwo mdbTwo; public void onMessage(Message message) { log.info("Received message from jms/QueueOne: " + message); String entityId= null; try { if (message