I have a stand alone app that is generating JMS messages. I have the client packaged in a jar, and it is placed along with its supporting jars in a /lib directory. The other jars are referenced in the manifest, and the client works as expected. The rest of the client is structured as follows: /bin - shell script to run client /conf - config files /lib - jars /logs - logs However, I am struggling with the jndi.properties file. The client is picking up a file somewhere else, as it is not reading the one I have placed in conf (which I reference in the Class-path: in the jar manifest. I tried moving it to /lib, and changing the manifest too, but to no avail. Where can I place this file so it will be read properly, without having to read it programmatically? I've tried passing it in the classpath from the shell script, but that doesn't work either. If I reference it with -D, what key do I use? -D[key]=conf/jndi.properties
I think that that very much depends on what you're using as a jndi server. In the JOnAS system I run here, the JOnAS system comes with its own registry server and it gets its properties from the jonas.properties file.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Aug 02, 2002
I believe that the file has to be in a directory that is in the classpath (as opposed to the file itself). Mat.
Joined: Apr 03, 2002
A directory, but not a file in the classpath. Well, that seems quite strange, but I'll give it a shot.