JBoss Community

Re: Put environment properties in jndi.properties file.

created by Laura delli Paoli in JNDI and Naming - View the full discussion

In https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI you ca read:

 

The "org.jboss.ejb.client.naming" has a URLContextFactory implementation which will be used by the JNDI APIs to parse and return an object for ejb: namespace lookups. You can either pass these properties to the constructor of the InitialContext class or have a jndi.properites file in the classpath of the client application, which ......

 

My question is "how can I put jndi.properites file in the classpath of my application (I'm using Ecplise IDE)?

I wrote this line  in the .classpath file

<classpathentry kind="src" path="jndi.properties"/>

but propertiesa re not read. I suppose mthe problem is in the kind of the classpath entry!

Can anyone help me?

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community