I have a task: I want to parallelize message receiving process. The task has thin place: special marked messages must be processed in special order - in order of receiving by my service. I'm trying to solve the task with JMS. Messages are placing in a queue and several MessageDriveBeans are processing those messages. I've a "classical requirement": I want to ensure that messages will be processed in same order as they was passed in to the queue. I work with WildFly 8.2 (HornetQ - JMS provider). I know that is a "none of JMS pattern reqirement".
How I can organize this process? Maybe I must to implement another pattern for solving?