I have simple Message Driven Bean
@Named
@MessageDriven(mappedName = "jms/myQueue")
public class TestMDB implements MessageListener {
@Override
public void onMessage(Message msg) {
//...
}
}
How can I achieve the same using only deployment descriptor ejb-jar.xml instead of annotations? I don't know queue's JNDI-name at compile time, so I want to specify it in deployment descriptor.
Maybe something similar to:
Then in the bnd.xml file: