Creating a Client Application for an EAServer 6.x EJB Component

Building EJB client applications for EJBs running in EAServer 6.x requires additional steps when you create the client.

  1. Copy the eas-server-15.jar file (or eas-server-16.jar if you are using JDK 1.6.x) from the %DJC_HOME%\lib directory to the client computer and include its full path in the client’s CLASSPATH.
  2. Copy the stub files from %DJC_HOME%\genfiles\java\classes\ directory to the client computer and include this path in the client’s CLASSPATH.
  3. Copy the packagename directory from the %DJC_HOME%\deploy\ejbjars\ directory on the server to the client computer, where packagename is the package that contains the EJB you want to use, and include this path in the client’s CLASSPATH.
    If you copied these files and directories to a directory on the client called EAServer6, and you want to use an EJB in a package named datamapping, the client CLASSPATH setting might look like this:
    Classpath=D:\EAServer6\lib\eas-server-15.jar;D:\EAServer6\genfiles\java\classes;D:\EAServer6\deploy\ejbjars\datamapping