Send the more details.I have succeded in invoking an EJBean through an
applet.
>----------
>From: noelia[SMTP:[EMAIL PROTECTED]]
>Sent: Wednesday, October 27, 1999 12:02 AM
>To: [EMAIL PROTECTED]
>Subject: Connecting to an EJB from an applet
>
>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.TengahInitialContex
>tFac
>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".
>
>
===========================================================================
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".