Basic Calculator Client


Locating the source code
Reviewing coding notes

Locating the source code

Locate the source code in the
directory.

Reviewing coding notes

This Sample shows how to use a very simple stateless session enterprise bean from a J2EE Application Client. It does not show examples of other J2EE application client features, such as Resource references or Environment entries. No database tables are required.

The TechnologySamples.ear file included with this Sample contains a subset of the TechnologySamples.ear file found within the Technology Samples on a server installation. The Web archive (WAR) files and unrelated Technology Samples are removed to illustrate what an Enterprise archive (EAR) file looks like when optimized for a client installation.

A client does not have the ability to regenerate deployment descriptors. The enterprise bean JAR file BasicCalculatorEJB.jar within the EAR file is deployed and skipped during the build process. If you need to update any server interfaces, build the code and redeploy the Technology Samples on a server installation and replace the BasicCalculatorEJB.jar file in the directory.

You can view examples of several key factors that go into assembling a J2EE WebSphere client application by opening the TechnologySamples.ear file with the Application Assembly Tool on a server installation as follows:

  1. After opening the EAR file, expand Application Clients and click Basic Calculator Client. The following fields display:

  2. Click Basic Calculator Client > EJB References. Two fields help define your EJB references: