Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

Building a Stateless Session Bean: Step 8

 
Training Index


[ <<Back ] [ Contents ] [ Next>> ]



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.

  1. Compile the client
  2. 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 >>