-
1. Re: Put environment properties in jndi.properties file.
wdfink Jun 8, 2012 4:43 AM (in response to lauradp)What do you wnat to achieve? Which JBoss versiondo you use? How your environment looks like.
Please provide a bit more details that we are able to help you out.
-
2. Re: Put environment properties in jndi.properties file.
lauradp Jun 9, 2012 7:18 AM (in response to wdfink)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!
Thanks
Laura
-
3. Re: Put environment properties in jndi.properties file.
wdfink Jun 11, 2012 7:27 AM (in response to lauradp)For that you should use the jboss-ejb-client.properties.
See the description here.
-
4. Re: Put environment properties in jndi.properties file.
lauradp Jun 14, 2012 8:24 AM (in response to wdfink)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?