Hi James.

I think , you can implement it.
Your servlet  will just act as a client for other Application server.

For weblogic, you can download the evaluation version of Weblogic which is
free.
After deploying the bean to Weblogic you can include following lines
in the servlet.

Properties p = new Properties();
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialC
ontextFactory");

p.put(javax.naming.Context.PROVIDER_URL,"t3://<host-IP>:7001");
p.put(Context.SECURITY_PRINCIPAL,"<username>");
p.put(Context.SECURITY_CREDENTIALS,"<password>");

 Context cx = new InitialContext(p);
 Object objHome  = cx.lookup("<jndi-name>");     [jndi-name  which is
specified in weblogic-ejb-jar.xml]
.....etc.

While running Orion you have to also provide the classpath for Weblogic to
get Initial Context factory
which can be
<weblogic-root>\classes .


----- Original Message -----
From: James Ho <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 9:31 AM
Subject: URGENT: talking with other app server?


> Hi everyone.
>
> Is it possible for a servlet deployed in orion talk to other app server
> to access its beans?  if so, how? what is the requirement?
>
>
> I have got Orion using JNDI to use another Orion's bean, my main concern
> is the fact that when initiating the JNDI context, I would have to
> setthe property:
>             Properties props = new Properties();
>             props.put("java.naming.factory.initial",
> "com.evermind.server.rmi.RMIInitialContextFactory");
>             props.put("java.naming.provider.url", provider.getPath());
>             props.put("java.naming.security.principal",
> provider.getRemoteLogin());
>             props.put("java.naming.security.credentials",
> provider.getRemotePasswd());
>             props.put("dedicated.connection","true");
>             props.put("classLoader",StampHome.class.getClassLoader());
>             context = new InitialContext(props);
>
> What if talking with weblogic?  I would have to change the
> ContextFactory..can I download any impl from weblogic and use it (for
> free) ?
>
> If you can help, please reply Asap, thanks a million!
>
> James.


Reply via email to