Undeploy the Java EE Example
The application can then be undeployed by running the following command from within the mdb directory. ./build.sh undeploy This should so some output similar to the following: Buildfile: build.xml validate-jboss: undeploy: undeploy-misc: [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA /server/default-with-hornetq/deploy/mdb-example.ear [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA /server/default-with-hornetq/deploy/hornetq.sar/hornetq-queues.xml [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA /server/default-with-hornetq/deploy/hornetq.sar/hornetq-jms.xml BUILD SUCCESSFUL Total time: 1 second You can verify that the application has been undeployed by checking the output from the JBoss Application Server, in this instance it will be something like: 16:36:45,277 INFO [EJBContainer] STOPPED EJB: org.jboss.javaee.example.server.MDBExample ejbName: MessageMDBExample