Build the JAX-RS web application and deploy it to your Enterprise Server v3 instance.
Compile, package, and deploy dukes-age.war to Enterprise Server v3. This task gives instructions on deploying dukes-age.war in NetBeans 6.7 IDE.
Select dukes-age in the Projects tab.
Right-click dukes-age and select Run.
After dukes-age.war deploys successfully to Enterprise Server v3 a web browser will load the URL of the DukesAgeResource path, and you'll see the returned String representing Duke's age.
Here's an example of the output of DukesAgeResource displayed in a web browser.
14 |