I have an MDB on JBoss eap. What I want is to register queues from my java code. All I could find is using ejb-jar.xml if one donot want to use annotation. So is there any way that I can provide destination and destination type from Java code , like my java code will read from properties file for this. Thanks in advance.
@MessageDriven(messageListenerInterface=MessageListener.class,
activationConfig = {
@ActivationConfigProperty( propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty( propertyName = "destination",
propertyValue ="test_in")
}
)