Have you read the documentation? There is a whole chapter on JBoss MQ that should answer your questions:
http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/JMS_Examples-A_Point_To_Point_Example.html
Reply to this message by going to Community
Start a new discussion in JBoss Messaging at Community