java - Out of order messages with jboss -
we have faced issue in message driven bean level. when multiple messages arrived mdb
@ same time, process out of order.
eg:
original order of messages : message 1, message 2, message 3
but in application level onmessage()
method received messages in incorrect order.
eg: message 2, message 1, message 3
we using ejb3
message driven annotations in our mdb
while jboss
version jboss eap 6.4
, use hornetq
@messagedriven(activationconfig = { @activationconfigproperty(propertyname = "destinationtype", propertyvalue = "javax.jms.queue"), @activationconfigproperty(propertyname = "destination", propertyvalue = "queue/queue1"), @activationconfigproperty(propertyname = "subscriptiondurability", propertyvalue = "durable"), @activationconfigproperty(propertyname = "reconnectattempts", propertyvalue = "-1"), @activationconfigproperty(propertyname = "minsessions", propertyvalue = "1"), @activationconfigproperty(propertyname = "maxsessions", propertyvalue = "1"), @activationconfigproperty(propertyname = "maxmessagespersessions", propertyvalue = "1"), @activationconfigproperty(propertyname = "acknowledgemode", propertyvalue = "auto-acknowledge")}, name = "messagedrivenbeanejb")
but requirement messages arrived application original order received jboss
application server.
how can sorted out?
you have incorrect config property names hornetq. try
@activationconfigproperty(propertyname = "maxsession", propertyvalue = "1"),
you should find out of others have specified correct hornetq because these parameters earlier jboss messaging incarnation.
Comments
Post a Comment