What's the recipe for creating a JNDI binding from a servlet? Obviously I know the JNDI APIs. However, a new InitialContext() call does not find the local JNDI tree. I'd like to be able to do exactly this: final InitialContext c = new InitialContext(); | c.rebind(someName, thingToBind); ...but that doesn't work. The rebind() call cannot find the JNDI tree, which doesn't particularly surprise me in the abstract, since I certainly haven't supplied any JNDI properties either (a) on disk or (b) in the InitialContext constructor. But I feel like I shouldn't have to--I'm running in a servlet on the server, after all, so shouldn't a new InitialContext() call in such an environment somehow know that the local JNDI tree is the one I want?
(I filed this under Configuration and Deployment because that's effectively the stage during which I'm doing this; if this is an incorrect location, my apologies.) Thanks, Laird View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942955#3942955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942955 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user