Step 3: Running and Testing the Application |
Previous |
Next |
To test the application, you'll run it again and generate a new sample Java client.
To run the application:
You will 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.
To test the application, you'll use the sample Java client again.
To create and run a sample client:
findByDname()
through the session bean's method listByDname() with the following
code:System.out.println(HrApp.listByDname( "Sales"));
Department Details....
80......Sales......2500.....