Hi, Where do the org.jnp classes come from? Thanks,
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Becker, Michael [mailto:[EMAIL PROTECTED]] >Sent: Friday, November 22, 2002 9:35 AM >To: Tomcat Users List >Subject: RE: Tomcat with external JBoss (JNDI problems)... > >This works for me: > >// Try to find each of these individual parameters >// and construct the properties >// object appropriately >java.util.Properties p = new java.util.Properties(); > >p.put(InitialContext.INITIAL_CONTEXT_FACTORY, > "org.jnp.interfaces.NamingContextFactory"); >p.put(InitialContext.URL_PKG_PREFIXES, > "org.jboss.naming:org.jnp.interfaces"); >p.put(InitialContext.PROVIDER_URL,"yourservername"); >InitialContext context = new InitialContext(p); > > >After that you can do your EJB lookup's with that context. > > >-----Original Message----- >From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]] >Sent: Friday, November 22, 2002 7:05 AM >To: [EMAIL PROTECTED] >Subject: Tomcat with external JBoss (JNDI problems)... > >I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs. > >I've put a jndi.properties file pointing to the JBoss JNDI server in my >WEB- >INF/classes directory....but my servlet does not pick it up for some >reason....and just grabs Tomcats JNDI instance instead. > >Anyone know how to set this up so my servlet can get an IntialContext >that >points to the JBoss server (that is, so that it finds the >jndi.properties file)? > >Thanks! > > >Andrzej Jan Taramina >Chaeron Corporation: Enterprise System Solutions >http://www.chaeron.com > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
