I have a Message Driven Bean
@MessageDriven(ejbName = "TestMDB",
destinationJndiName="test.QueueIn", destinationType = "javax.jms.Queue")
public class TestMDB extends GenericMessageDrivenBean implements
MessageDrivenBean, MessageListener {
.....
}
I'd like to replace the direct destination reference "test.QueueIn" with the "java:comp/env/jms/TestQueueIn" notation. This should allow me to specify the MDB destination in the deployment descriptor instead of in the java code. That is, I want to determine the MDB destination in the deployment time, not in the compile time.
Is this possible? Or, is there a better way of creating the reference indirection?