Using Jboss 4.0 with netbeans

Kindly tell how to get messages in order in particular topic as presently those are not coming in an order.

Thank you