background image

Removing the Administered Objects

<< Running the simplemessage Application | Creating Deployment Descriptors >>
<< Running the simplemessage Application | Creating Deployment Descriptors >>

Removing the Administered Objects

ant run
Ignore the message that states that the application is deployed at a URL.
The output in the terminal window looks like this:
running application client container.
Sending message: This is message 1
Sending message: This is message 2
Sending message: This is message 3
To see if the bean received the messages,
check <install_dir>/domains/domain1/logs/server.log.
In the server log file, the following lines should be displayed, wrapped in logging information:
MESSAGE BEAN: Message received: This is message 1
MESSAGE BEAN: Message received: This is message 2
MESSAGE BEAN: Message received: This is message 3
The received messages often appear in a different order from the order in which they were sent.
Undeploy the application after you finish running the client. Use the following command:
ant undeploy
To remove the generated files, use the following command:
ant clean
Removing the Administered Objects for the
simplemessage
Example
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
Packaging, Deploying, and Running the simplemessage Example
Chapter 23 · A Message-Driven Bean Example
681