The description for running SFSB Failover sample
application using java client is incorrect.
The java command for running the SFSB Failover sample application in
the sample application documentation is incorrect.
Solution
The following is the correct description for running sfsbFailover with
java client:
Running sfsbFailover sample with local or remote RMI/IIOP-based client
without ACC:
The java client is executed without using the interface of Application
Client Container. It can be executed on the local machine (ashost) or a remote
machine. The client application runs from the command line, i.e.
java -Djava.library.path=$AS_INSTALL/lib:/usr/lib/mps
-Dcom.sun.CORBA.connection.ORBSocketFactoryClass=com.sun.enterprise.iiop.EEIIOPSocketFactory-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sun.appserv.ee.iiop.EEORBInitializer-Dorg.omg.CORBA.ORBClass=com.sun.enterprise.iiop.POAEJBORB-Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.ee.internal.corba.ORBSingleton-Djavax.rmi.CORBA.UtilClass=com.sun.corba.ee.internal.POA.ShutdownUtilDelegate-classpath <CP> <ClientApp>java.naming.factory.initial=com.sun.appserv.naming.S1ASCtxFactorycom.sun.appserv.iiop.loadbalancingpolicy=ic-basedcom.sun.appserv.iiop.endpoints=host:port,host:port
where:
-
CP includes five jar files for CLASSPATH which are sfsbFailover.jar,
appserv-rt.jar, appserv-ext.jar and appserver-rt-ee.jar,appserv-admin.jar.
The file of sfsbFailoverClient.jar is copied to the
current directory from the deployment directory: install_dir/domains/domain1/server1/applications/j2ee-apps/sfsbFailover_1
The other jars are copied to the current directory from AS installation: install_dir/lib
If you intend to run the client application on a remote machine, you
need to transfer the sfsbFailoverClient.jar and other three
appserver jar files to the client machine. Although the sfsbFailoverClient.jar file is used in this example to run application client with or
without an ACC, it contains more files than absolutely necessary for the situation
in which an ACC is not used. The minimal files required to run the example
on a remote machine without an ACC are the appserv-ext.jar file
and the following files as extracted from the sfsbFailoverClient.jar file:
samples/ejb/stateful/simple/ejb/Cart.class - Remote
Interfacesamples/ejb/stateful/simple/ejb/CartHome.class -
Home Interfacesamples/ejb/stateful/simple/ejb/_Cart_Stub.class -
Remote Stubsamples/ejb/stateful/simple/ejb/_CartHome_Stub.class -
Home Stubsamples/ejb/stateful/simple/client/CartClient.class -
Client Application Main Class
The appserv-ext.jar file is required on the client
machine because it contains the javax.ejb package that the client needs, and
also contains the implementation and interface for J2EE APIs that the client
may need.
|