You configure properties by using the <message-driven> element and sub elements which correspond to the @ActivationConfigProperty annotation. All properties that you can set are defined in the ejb-jar.xml deployment descriptor.
Take a look at ExampleMDB.java.
The queue-example-service.xml file defines the queue. This is the same in regular JBoss.
Unix: $ export JBOSS_HOME=<where your jboss 4.0 distribution is> Windows: $ set JBOSS_HOME=<where your jboss 4.0 distribution is> $ ant $ ant run
Look in the console window to determine that the message was sent.
01:01:20,828 INFO [STDOUT] ---------------- 01:01:20,828 INFO [STDOUT] Received message 01:01:20,828 INFO [STDOUT] ----------------