Chapter 3: Developing EJB Clients


Client runtime requirements

To run EJB clients, you must have:

EAServer generates client stubs on demand. If stubs are not available, the client runtime generates and compiles stub classes when you first invoke a component.

You must have a full JDK installation to generate compiled stubs at runtime. To deploy client applications to run in a JRE installation, you must include the generated stubs. When you deploy an EJB-JAR file, EAServer automatically creates stubs under the genfiles/java/classes subdirectory of the EAServer installation. Stub classes are in the Java package named by appending iiop_stubs to the package name of the interface class. For example, for interface com.sybase.easerver.tutorials.ejb.Query, the Java stub package is com.sybase.easerver.tutorials.ejb.iiop_stubs.

You can also manually generate stubs with the stub-compiler command. For details, see Chapter 12, “Command Line Tools,” in the System Administration Guide.