Hi,
I have an EJB running in the WebLogic server, when I use an application as a
client I can get a connection to the EJB no problem, but when I try to get
the connection from an applet it throws a NullPointerException when trying
to set the initial context.
I have tried two different ways:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.TengahInitialContextFac
tory");
p.put(Context.PROVIDER_URL, "t3://" + host + ":7001/");
InitialContext ic = new InitialContext(p);
System.err.println("looked up initial context");
MyEJBHome bh = (MyEJBHome) ic.lookup("MyEJBHome");
and:
Hashtable env = new Hashtable(5);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL,
"t3://weblogicServer:7001");
Context ic = new InitialContext(env);
System.err.println("looked up initial context");
MyEJBHome bh = (MyEJBHome) ic.lookup("MyEJBHome");
in both cases I never get to see 'looked up initial context' in the screen,
and I get a NullPointerException, I could provide more details about the
trace of the exception if anyone would like to see them.
Thank you very much,
Noelia.
===========================================================================
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".