After you run the example, you can use the following Ant targets to delete the connection factory and queue:
ant delete-cf ant delete-queue