Java Reference
In-Depth Information
3. Execute the create-forest-realm Ant task:
ant create-forest-realm
This task creates a JDBC connection pool and a JDBC resource as well as the
realm.
4. Execute the Ant task:
ant
This task creates the tables (dropping any existing tables) and builds the JAR file.
Ignore any errors if you are running the task for the first time.
To Build and Deploy the Duke's Forest Application Using NetBeans IDE
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install /examples/case-studies/dukes-forest/
3. Select the dukes-store folder.
4. Select the Open Required Projects check box.
5. Click Open Project.
The IDE will open the dukes-store , dukes-resources , entities , and
events projects.
The project opens with a message stating that there is a data source problem.
6. Right-click the project and select Resolve Data Source Problem.
7. In the dialog that opens, select jdbc/forest and click Add Connection.
8. Click Finish.
The connection to the forest database is now established.
If the project still indicates there is a data source problem but the dialog does not
indicate a missing connection, close and reopen the project.
9. Repeat steps 1-5 to open the dukes-shipment project.
10. Repeat steps 1-5 to open the dukes-payment project.
11. Right-click the events project and select Build.
12. Right-click the dukes-resources project and select Build.
13. Right-click the dukes-payment project and select Deploy.
14. Right-click the dukes-store project and select Deploy.
Search WWH ::




Custom Search