Hello! I'm using JBos AS7.My will is to separate configurations and code, so I put all the environments constants in the jndi-properties.xml attached, instead af putting them in the InitialContext constructor.
Since I'm using elcipse IDE I put the xml in the classpath, as shown in my previous post, but the properties are not loaded!
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?