Human Resources Example - Run the Client
To run the client, change to the client-pojo directory and type ./run.sh. The Example 4.4, “HRManager Menu Screen� appears. Example 4.4. HRManager Menu Screen Menu: d) Deploy Human Resources service u) Undeploy Human Resources service a) Add employee l) List employees r) Remove employee g) Get a salary s) Set a salary t) Toggle hiring freeze m) Display menu p) Print service status q) Quit > To select an option, enter the letter shown on the left-hand side and press RETURN. For example to display the menu options enter m followed by RETURN. Entering more than one letter or entering an invalid option results in an error message. Important The run.sh script sets up the run-time environment by adding all of the JARs found in the lib/ directory to the classpath using the java.ext.dirs system property. It also adds the current directory and the client-1.0.0.jar using the -cp flag so that the jboss-beans.xml deployment descriptor can be found at run-time along with the org.jboss.example.client.Client class which is called to start the application.