The Java(TM) Client Sample Application can be set up to run in the WebSphere(R) Test Environment within WebSphere Studio Application Developer Integration Edition or on WebSphere Application Server V5.1.1. The Java Client Sample Application includes a J2EE Enterprise Application (EAR) file containing everything you need to run this sample. The procedures contained in this section describe how to set up (configure) the EAR file and deploy it.
The server side of the Java Client Sample Application runs in the Web server process and therefore needs the IBM(R) HTTP Server and the IBM WebSphere Application Server up and running. The classes that starts the server component is the StartServerServlet, which does the following:
MetaData meta = new MetaData(); CSServer aCSServer= CSServer.getInstance(); aCSServer.initiateServer();
The code above is executed when the StartServerServlet runs.
Note that almost the same code can be used to start other toolkit applications. The context name and the client server alias would be different and you need to add any specific process that your server application needs to perform when it is started.
The Java Client Sample Application can have any of the following clients:
You do not have to make any code changes to switch clients. Note that you can control whether the HTML client is using JSPs or applets by the URL you enter in the Web browser.