This section describes how to build, package, deploy, and run the order application. To do this, you will create the database tables in the JavaDB server, then build, deploy, and run the example.
Follow these instructions to build, package, deploy, and run the order example to your Enterprise Server instance using NetBeans IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/examples/persistence/.
Select the order folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the order project and select Run.
NetBeans will open a web browser to http://localhost:8080/order/.
To build the application components of order, enter the following command:
This runs the default task, which compiles the source files and packages the application into an WAR file located at tut-install/examples/persistence/order/dist/order.war.
To deploy the WAR, make sure the Enterprise Server is started, then enter the following command:
Open a web browser to http://localhost:8080/order/ to create and update the order data.
As a convenience, the all task will build, package, deploy, and run the application. To do this, enter the following command:
To undeploy order.war, enter the following command: