user manual
122 BES Developer’s Guide
Embedding VisiClient Container functionality into an existing application
1 Copy the following JAR files from <install_dir>/lib to client machine:
■
lm.jar
■
xmlrt.jar
■
asrt.jar
■
vbjorb.jar
■
vbsec.jar
■
jsse.jar
■
jaas.jar
■
jcert.jar
■
jnet.jar
■
vbejb.jar
2 Copy the following JAR file from <install_dir>/jms/tibco/clients/java to
client machine:
■
tibjms.jar
3 Copy <install_dir>/bin/appclient.config to client machine.
4 Copy <install_dir>/BES/bin/appclient.exe to client machine.
To run the J2EE client using the appclient:
1 Set the PATH to appclient.exe and JDK.
2 Edit the appclient.config to change JAVA_HOME, and lib PATH.
3 Run the J2EE client from <client_application_folder>/client.
Embedding VisiClient Container functionality into an existing
application
As an alternative to deploying and running a client application in the VisiClient
container, it is possible to use a programmatic approach to embed the client
container's functionality into an existing application. In this case, the client
application can be started in a common Java fashion by running a class
implementing the main() method.
To embed the VisiClient container functionality into your application, you need
to call the following method:
public static void com.borland.appclient.Container.init
(java.io.InputStream deploymentDescriptorSun,
java.io.InputStream deploymentDescriptorBorland)
throws IllegalArgumentException;
This method will create and populate the "java:comp/env" naming context
based on the information provided in the pair of Sun and Borland deployment
descriptors. The deploymentDescriptorSun and deploymentDescriptorBorland
parameters must represent text XML data corresponding to the deployment










