Hello, We recently upgraded our development stack from WildFly v24 on JDK 11 to WildFly v26 on JDK 17. Once we had all our applications running, we discovered that our Message Driven Beans no longer connect to the Artemis instance.
To verify it wasn't a configuration issue with our Artemis process or a code problem, I temporarily restarted a QA server on WildFly v24 with the exact same deployments, and the consumers/MDBs all connected to the queues and began processing messages.
Our stateless beans using @Inject @JMSConnectionFactory("java:/jmsXA") are working fine and we can publish messages to queues without incident. Additionally, message driven beans that connect to a topic instead of a queue are also working OK. It seems only MDBs connecting to a queue with a resource adapter are affected.
We're using an out-of-process artemis 2.23.1 instance so our standalone.xml config for activeMQ/MDBs is quite brief, we just define a pooled-connection-factory and point it at an outbound-socket-ref to the artemis port.
Here's a sample @MessageDriven configuration showing how we're defining the bean and its configuration
@ResourceAdapter("activemq-ra")
@MessageDriven(name="stTpvRowProcessor", activationConfig = {
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "tpv.event.assetOpportunity"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "8"), // 8 listener instances per VM to process rows
@ActivationConfigProperty(propertyName = "consumerMaxRate", propertyValue = "100"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
Thanks for any advice you can provide on how to get the MDBs working on WildFly v26. I'll be happy to provide any additonal confguration from the artemis instance or wildfly as needed.