Re: How can I avoid hard coding the remote queue name in @MessageDriven when using resource adapter

2017-05-03 Thread asdfg195
I found the solution. The trick is the "useJndi" ActivationConfigProperty @MessageDriven( activationConfig = { @ActivationConfigProperty(propertyName = "destination", propertyValue = "java://activemq/Queue.Notifications.Project"), @ActivationConfigProperty(propertyName = "destinationTy

How can I avoid hard coding the remote queue name in @MessageDriven when using resource adapter

2017-05-02 Thread asdfg195
I am using an ActiveMQ resource adapter to connect to a remote ActiveMQ queue on a wildfly server. I have the following code in my jboss-ejb.xml to set up my resource adapter MyNotificationMDB mq-ra This maps to the following MDB @MessageDriven( activationConfig = { @ActivationConf