wang michael 15.Sep.11 04:07 PM a Web browser Client for Desktop6.2.2All platforms
I am developing application for Expeditor to retrieve data from the existing business system using EJB. EJBs are running in the remote websphere application server. Custmer insists on invoking remote EJB directly rather than using WebService or local EJB.
I have tried to invoke one remote EJBs from one standalone application(e.g. Eclipse RCP application) and succeed! Websphere application client must be installed in advance and JVM setting should be changed as below:
-Djava.security.auth.login.config=%WAS_HOME%\properties\wsjaas_client.conf
-Djava.ext.dirs=%JAVA_JRE%\lib\ext;%WAS_EXT_DIRS%;%WAS_HOME%\plugins;%WAS_HOME%\lib\WMQ\java\lib
-Djava.naming.provider.url=iiop://localhost
-Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
-Djava.endorsed.dirs=%WAS_ENDORSED_DIRS% %SERVER_ROOT%
-Dserver.root=C:\Progra~1\IBM\WebSphere\AppClient
-Dcom.ibm.CORBA.ConfigURL=file:%WAS_HOME%/properties/sas.client.props
-Dcom.ibm.SSL.ConfigURL=file:%WAS_HOME%/properties/ssl.client.props
But Expeditor client desktop could not start up when I changed Expeditor RCP JRE setting as above.
I couldn't determine if Expeditor can invoke remote EJB.
Here is the client side code:
Properties p = new Properties( );
p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
p.put(Context.PROVIDER_URL, "iiop://localhost:2809");
Context jndiContext = new javax.naming.InitialContext(p);