users@glassfish.java.net

Re: JNDI from signed applet

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Mar 2009 23:22:32 PST

hi

InitialContext needs some properties to work. AFAIK there is jndi.properties file inside appserv-rt.jar. you should try to pass theese parameters manualy in InitialContext's constructor as in this example:
http://www.java-tips.org/java-ee-tips/enterprise-java-beans/accessing-an-ejb-from-an-applet.html
Theese 2 system properties are also needed, but i'm not sure if it should be passes to the constructor:
-Dorg.omg.CORBA.ORBInitialHost=localhost
-Dorg.omg.CORBA.ORBInitialPort=3700

check http://www.greyc.ensicaen.fr/ensicaen/Java/docs/api/javax/naming/InitialContext.html for more details. There is a possibility to pass theese parameters as applet parameters.
[Message sent by forum member 'sasol' (sasol)]

http://forums.java.net/jive/thread.jspa?messageID=334983