Cybersource interview question

How to solve message sequence problem in jms messaging system?