background image

Undeploying the cart Example

<< Running the cart Application | Web Service Endpoint Implementation Class >>
<< Running the cart Application | Web Service Endpoint Implementation Class >>

Undeploying the cart Example

[exec] Retrieving book title from cart: Kafka on the Shore
[exec] Removing
"Gravity's Rainbow" from cart.
[exec] Caught a BookException:
"Gravity's Rainbow" not in cart.
[exec] Result: 1
The all Task
As a convenience, the all task will build, package, deploy, and run the application. To do this,
enter the following command:
ant all
Undeploying the cart Example
To undeploy cart.ear using NetBeans IDE:
1. Click the Runtime tab.
2. Expand the Servers node and locate the Application Server instance to which you deployed
cart
.
3. Expand your Application Server instance node, then Applications
Enterprise
Applications.
4. Right-click cart and select Undeploy.
To undeploy cart.ear using Ant, enter the following command:
ant undeploy
A Web Service Example: helloservice
This example demonstrates a simple web service that generates a response based on
information received from the client. HelloServiceBean is a stateless session bean that
implements a single method, sayHello. This method matches the sayHello method invoked by
the client described in
"A Simple JAX-WS Client" on page 484
.
A Web Service Example: helloservice
Chapter 22 · Session Bean Examples
665