We have a use case, where we need to process data from a JMS queue in the order of sending, thus we need sequential processing by 1 MDB instance. Our application runs (still on an old) WildFly 9 and according to documentation I found, we annotated the MDB with
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1") })
But it seems that this is not portable, since both Apache ActiveMQ in test environment and IBM MQ in production environment state
WFLYEJB0006: ActivationConfigProperty maxSession will be ignored since it is not allowed by resource adapter
So, what would be a portable way to ensure limitation to 1 MDB instance on the queue, so that the same solution works with different MQ vendors?