All that remains to do is to compile and run the Client program to ensure
that the Enterprise JavaBeans, installed in the servers, function correctly.
-
Compile the client
-
Run the client
Compiling and running the client are identical for all platforms, as should
be the results from running the client.
1. Compile the client
javac ejb/demo/DemoClient.java
2. Run the client
The "Hello World" string comes from the DemoSelect() method
of the Enterprise JavaBeans. Running the client should give the
following messages:
java ejb.demo.DemoClient <cr>
Begin DemoClient...
Creating Demo
The result is hello world
End DemoClient...
<< BACK
NEXT >>