![]() |
This topic provides reference information about the aids that client applications and client services can use to access the ActiveX to EJB bridge. This enables the ActiveX to EJB bridge to find its XJB.JAR file and the Java runtime.
Client applications
The following batch files are provided for client applications to use the ActiveX to EJB bridge:
- setupCmdLineXJB.bat
- Sets the client environment variables
- launchClientXJB.bat
- Calls setupCmdLineXJB.bat and launches the application you specify as its arguments; for example:
launchClientXJB.bat myapp.exe parm1 parm2orlaunchClientXJB MyApplication.vbpThese batch files set the following environment variables:
- JAVA_HOME
- Path to the Java runtime directory installed with the WebSphere Advanced Server Client.
- WAS_HOME
- Path to the WebSphere Advanced Server Client directory.
- NAMING_FACTORY
- Used to setup the Java java.naming.factory.initial system property
- COMPUTERNAME
- (Optional) Name of the computer where the WebSphere Advanced Server Client is installed. If you intend to talk to a single specific computer, you are recommended to change this value to become the server name that you intend to access.
Client services
The following aids are provided for client services to set some environment variables globally in the system environment or in your program:
- System Settings
- To enable the ActiveX to EJB bridge to access the Java runtime DLLs, the following directories must exist in the system PATH environment variable:
was_client_home\java\jre\bin;was_client_home\java\jre\bin\classicWhere was_client_home is the name of the directory where you installed the WebSphere Application Server Client (for example, C:\WebSphere\AppClient).
Note: This technique enables only one Java runtime to be activated on a machine, therefore all client services on that machine must use the same Java runtime. Client applications do not have this limitation, because they each have their own private, non-system scope.- ASP include file
- An include file is provided for ASP users to use to automatically set the following page-level (local) environment variables:
- com_ibm_websphere_javahome
- Path to the Java runtime directory installed with the WebSphere Advanced Server Client.
- com_ibm_websphere_washome
- Path to the WebSphere Advanced Server Client directory.
- com_ibm_websphere_namingfactory
- Sets the Java java.naming.factory.initial system property.
- com_ibm_websphere_computername
- (Optional) Name of the computer where the WebSphere Advanced Server Client is installed. If you intend to talk to a single specific computer, you are recommended to change this value to become the server name that you intend to access.
The include file is located in the was_client_home\Enterprise\WSASPIncludes directory. You can include the file into your ASP application with the following syntax in your ASP page:
<-- #include virtual ="/WSASPIncludes/setupASPXJB.inc" -->This assumes that you have created a virtual directory in Internet Information Server called WSASPIncludes that points to the was_client_home\Enterprise\WSASPIncludes directory.
Related concepts... | |
Parent: An overview of the ActiveX to EJB bridge | |