Follow these instructions to build, package, deploy, and run the order example to your Application Server instance using NetBeans IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/ejb/.
Select the order folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project.
In the Projects tab, right-click the order project and select Run.
You will see the following output from the application client in the Output tab:
... Cost of Bill of Material for PN SDFG-ERTY-BN Rev: 7: $241.86 Cost of Order 1111: $664.68 Cost of Order 4312: $2,011.44 Adding 5% discount Cost of Order 1111: $627.75 Cost of Order 4312: $1,910.87 Removing 7% discount Cost of Order 1111: $679.45 Cost of Order 4312: $2,011.44 Average price of all parts: $117.55 Total price of parts for Vendor 100: $501.06 Ordered list of vendors for order 1111 200 Gadget, Inc. Mrs. Smith 100 WidgetCorp Mr. Jones Counting all line items Found 6 line items Removing Order 4312 Counting all line items Found 3 line items Found 1 out of 2 vendors with ’I’ in the name: Gadget, Inc. run-order-app-client: run-ant: run: BUILD SUCCESSFUL (total time: 22 seconds)