The Java EE 6 Tutorial

Undeploying and Cleaning the Simple JMS Examples

After you finish running the examples, you can undeploy them and remove the build artifacts.

You can also use Ant targets in the producer/build.xml file to delete the destinations and connection factories you created in To Create JMS Administered Objects for the Synchronous Receive Example. However, it is recommended that you keep them, because they will be used in most of the examples later in this chapter. After you have created them, they will be available whenever you restart the GlassFish Server.

If you wish to delete the connection factories and destinations, go to the producer directory and type the following:


ant delete-resources
ant delete-remote-factory

Remember to delete the remote connection factory on both systems.