Step 4: Running and Testing the Application |
Previous |
Next |
Iterative testing is an integral part of developing an application. In this tutorial, you will run and test the application every time you make changes to the session bean. For testing purposes, you will generate a sample Java client.
To run the application:
You may experience a short delay as the application deploys to the embedded OC4J server. If your Log window is open (View | Log Window), you can follow along with the deployment process. If you see a message that says "Error creating the ORB" ignore this.
To test the application, you need to create a client that can access the session bean. JDeveloper provides a sample Java client that facilitates testing.
To create and run a sample client:
setCompany() method and set the value to "Oracle
Corporation".getCompany() and print it to the console. Your code should
be similar to the code below:
HrApp = HrAppHome.create( );
HrApp.setCompany ("Oracle Corporation");
System.out.println(HrApp.getCompany());