0

I have such MDB in my application

@MessageDriven(activationConfig = {
        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
        @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:jboss/exported/jms/queue/TestQueue"),
        @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "source = 'client'")})
public class JmsReceiver implements MessageListener {

    @Override
    public void onMessage(Message message) {
        // .......
    }

}

The question is the way of queue creation. I remember that with Wildfly 16 it was enough simply to deploy application with MDB and the queue was available remotely with JNDI name jms/queue/TestQueue but with Wildfly 18 it starts to work only after I create the queue with proper name in server console.

How exactly the queue creation works in Wildfly and ActiveMQ?

Alexey Usharovski
  • 1,404
  • 13
  • 31

1 Answers1

0

I would recommend that you add a jms destination definition xml file to your deployment. See https://docs.jboss.org/author/display/WFLY10/Messaging+configuration for an example

Will Tatam
  • 566
  • 3
  • 10