Building EJB client applications for EJBs running in EAServer 6.x requires you to take some additional steps when you create the EJB client proxy and when you create the client.
.NET clients for EAServer components
PowerBuilder installs the EAServer 6.2 DLLs, com.sybase.iiop.net.dll and com.sybase.ejb.net.dll,
in the GAC on the development computer, and requires these DLLs
on runtime computers for applications that access EAServer components
from .NET targets. You can use the Runtime Packager to place these
DLLs in the GAC on deployment computers. However, if you subsequently
upgrade EAServer from the 6.2 version, you must copy the upgraded
DLLs from the EAServer/Lib directory to the GAC of all
computers that use the upgraded version. If you then run or rerun
the Runtime Packager, you must also recopy the upgraded DLLs to
the GAC, since the Runtime Packager will overwrite any version upgrades
that you make to these DLLs.
To generate a proxy for an EJB deployed to EAServer
6.x:
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.
Add this directory to the Classpath on the Select EJB Component dialog box in the EJB Proxy Project painter.
Generate the proxy.
To create an EJB client application for an EJB
deployed to EAServer 6.x:
Copy the eas-server-14.jar file (or eas-server-15.jar if you are using JDK 1.5.x) from the %DJC_HOME%\lib directory to the client computer and include its full path in the client’s classpath.
Copy the stub files from %DJC_HOME%\genfiles\java\classes\ directory to the client computer and include this path in the client’s classpath.
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 the datamapping package, the client classpath setting might look like this:
Classpath=D:\EAServer6\lib\eas-server-14.jar;D:\EAServer6\genfiles\java\classes;D:\EAServer6\deploy\ejbjars\datamapping