hey..
just changing from InitailContext.narrow to PortableRemoteObject.narrow
doesnt make much difference..As per RMI IIOp us should give only
PortableRemoteObject.narrow.
but the Initial Context parameter which u give for look up the bean differs
from weblogic to websphere.In weblogic u would use
"weblogic.jndi.WLInitialContextFactory"
The client look up in weblogic would look like this
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory
");
h.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ic=new InitialContext(h);
Object objlkup=ic.lookup(Jndi);
BeanHome
home=(BeanHome)PortableRemoteObject.narrow(objlkup,BeanHome.class);
Remote
remote=(Remote)PortableRemoteObject.narrow(home.create(),Remote.class);
return remote;
but the h.put value changes in websphere ..
ex:
Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
InitialContext ic = new InitialConext(h);
Just try to work with this
Arul
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 4:56 PM
Subject: Re: WebSphere3.5 Client Running Problem
> Hi buddy,
>
> u need to check how r u getting the InitialContext from the JNDI . I faced
> a similar problem
> coz i was using EJBHome home=initialcontext.narrow(".....");
> instead use home=PortableRemoteObject.narrow("......");(boy check out the
> exact syntax)
>
> check if thats the problem,
>
> pirbhu
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".