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.

Deploying the converter <strong>Java</strong> <strong>EE</strong> Application<br />

%><br />

<br />

<br />

Compiling the converter Web Client<br />

<strong>The</strong> Application Server automatically compiles web clients that are JSP pages. If the web client<br />

were a servlet, you would have to compile it.<br />

Deploying the converter <strong>Java</strong> <strong>EE</strong> Application<br />

Now that the <strong>Java</strong> <strong>EE</strong> application contains the components, it is ready for deployment. You can<br />

deploy the application using either NetBeans IDE or Ant.<br />

Deploying the converter Example Using NetBeans<br />

IDE<br />

Follow these instructions to deploy the converter example to your Application Server instance<br />

using NetBeans IDE.<br />

1. In NetBeans IDE, make sure the converter application is open.<br />

2. In the Projects tab, right-click the converter project and select Undeploy and Deploy. You<br />

will see the output in the Output tab.<br />

Deploying the converter Example Using Ant<br />

To deploy converter.ear using Ant, run the deploy task.<br />

ant deploy<br />

converter.ear will be deployed to the Application Server.<br />

Running the converter Application Client<br />

650<br />

When you run the application client, the application client container first injects the resources<br />

specified in the client and then runs the client. You can run the application client using either<br />

NetBeans IDE or Ant.<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

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

Saved successfully!

Ooh no, something went wrong!