In the following, $JBOSS_HOME is the root directory of the Application Server installation, and $CONFIG is a server configuration, e.g., default, all, etc.
$JBOSS_HOME/server/$CONFIG/deploy/remoting-jboss-beans.xml
$JBOSS_HOME/server/$CONFIG/deploy/ejb3-connectors-jboss-beans.xml
$JBOSS_HOME/server/$CONFIG/deploy/messaging/remoting-bisocket-service.xml
also see $JBOSS_HOME/docs/examples/jms
AS 6: uses Hornetq instead of JBoss Messaging