Probably your best place to start is the distributed queue example in the distribution.
Is this working for you?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020479#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...