Hi, I want my applet in the web container to get in touch with an EJB on the Jboss application server. Can someone please tell me the steps involved in doing the above mentioned? How is the JNDI naming lookup handled? As of now, I have the following peace of code in the init() method of my applet and it doesnt work: Properties props= new Properties(); props.put (Context.PROVIDER_URL,"localhost:1099"); props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); InitialContext ctx = new InitialContext(); Object objref = ctx.lookup("TraderController"); TraderControllerHome home = .................. I would be grateful if somebody could shed some light on it and help me out. Thanks! Regards, Sanjit
One possible problem is that the applet is not running in the web container. The applet is running in the applet container (either Sun's applet Runner or the Java plugin in a browser). Odds are good that your problem is one of classpaths -- you need to make sure all of the JBoss classes are in your applet's classpath (meaning they probably need to be loaded by the applet, e.g. the applet tag should reference all of the JAR files necessary). Kyle ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.