Follow these instructions to build, package, and deploy the converter-secure 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 converter-secure folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project.
In the Projects tab, right-click the converter-secure project and select Clean and Build.
In the Projects tab, right-click the converter-secure project and select Undeploy and Deploy.
This step builds and packages the application into converter-secure.ear, located in tut-install/javaeetutorial5/examples/ejb/converter-secure/dist/, and deploys this ear file to your Application Server instance.
To run the secure converter’s application client, select Run->Run Main Project. You will be prompted for your username and password.
Enter the username and password of a user that has been entered into the database of users for the file realm and has been assigned to the group of user.
If the username and password you enter are authorized, you will see the output of the application client in the Output pane:
[exec] $100.00 is 11531.00 Yen. [exec] 11531.00 Yen is 81.88 Euro.