During this tutorial, you will test the application that you deployed during the Application deployment tutorial. This involves trying the Web and Java clients of the application to ensure the application can be accessed by users.
You need to have performed the Application deployment tutorial successfully so that you have a deployed application to test.
For successful use of the client:
To verify whether the application and application server are running:
Test the Web client of simpleSession by browsing the URL:
http://hostname:9080/gettingstarted3/SimpleSession?msg=Hi
The client will return your original message of "Hi" (notice the end of the URL: ?msg=Hi). You can send other messages and have them echoed back to you, such as ?msg=Wow
Test the Java application client by launching your client application in the client container.
product_installation_root/bin
launchClient ../temp/tutorial/assembly/Deployed_simpleSession.ear(Remember, on Windows systems, the forward slashes should be backslashes).
The client will contact the enterprise bean and return a "hello world" message.
The above command is issued from
the bin directory because the argument providing the path to the Deployed_simpleSession.ear
is relative to the bin directory. Actually, you should be able to issue the
command from any directory, as long as you correctly specify the path to
the .ear file whose application client you want to launch. More information
is available about the launchClient command.
Now that you have assembled and deployed an unsecured application, and tested your results, you might be interested in securing your application. The Application security tutorial describes how to do so, using local operating system authentication and login forms.