Building a Java client for a distributed or Web application

Types of clients

The Java client in a EJB Server distributed application can be an applet or an application, depending on whether you want your client to run in a Web browser.

Enterprise JavaBeans model for clients

EJB Server supports the EJB 1.1 client model using stubs that call the EJB Server CORBA ORB.

General procedure

Creating a Java client for EJB Server involves these general steps:

  1. In PowerJ, add the EJB Server component. This creates a proxy on the PowerJ component palette.

  2. Add a proxy object and PowerJ InitialContext object to your client.

  3. Write code that:

  4. Execute the Build command to compile your Java client and then deploy it.