10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Building, Packaging, and Deploying the SAAJ Coffee<br />

Supplier Service<br />

To build the SAAJ service and client library and to package and deploy the SAAJ service using<br />

NetBeans IDE, follow these steps:<br />

1. In NetBeans IDE, choose Open Project from the File menu.<br />

2. In the Open Project dialog, navigate to<br />

tut-install/javaeetutorial5/examples/coffeebreak/.<br />

3. Select the cb-saaj folder.<br />

4. Select the Open as Main Project and Open Required Projects check boxes.<br />

5. Click Open Project.<br />

6. Right-click the cb-saaj project and choose Build.<br />

7. Right-click the cb-saaj project and choose Undeploy and Deploy.<br />

To build the SAAJ service and client library and to package and deploy the SAAJ service using<br />

Ant, follow these steps:<br />

1. In a terminal window, go to<br />

tut-install/javaeetutorial5/examples/coffeebreak/cb-saaj/.<br />

2. Run ant. This task calls the default target, which creates the client library and compiles the<br />

SAAJ service classes.<br />

3. Make sure the Application Server is started.<br />

4. Deploy the SAAJ service:<br />

ant deploy<br />

Building, Packaging, Deploying, and Running the Coffee Break Application<br />

Building, Packaging, and Deploying the Coffee Break<br />

Server<br />

To build, package, and deploy the Coffee Break server using NetBeans IDE, follow these steps:<br />

1. In NetBeans IDE, choose Open Project from the File menu.<br />

2. In the Open Project dialog, navigate to<br />

tut-install/javaeetutorial5/examples/coffeebreak/.<br />

3. Select the cb folder.<br />

4. Select the Open as Main Project and Open Required Projects check boxes.<br />

5. Click Open Project.<br />

6. Right-click the cb project and choose Build.<br />

7. Right-click the cb project and choose Undeploy and Deploy.<br />

Chapter 36 • <strong>The</strong> Coffee Break Application 1045

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!