Hi,

What the best approach to use property files from development in and for deployment within tomcat? Because it seems they are not being read in at run time

System.getProperty("foo") always returns null under tomcat, but works perfectly in development in Xcode. I tried printing out System.getProperties() and none of my application properties have been loaded only the built in Java ones are there.

How does every one else handle this?

1) Manually add properties as   <env-entry> in the web.xml file?

2) Avoid properties altogether ?

3) Something else?

I had a quick look at LEConfigServletEnvEntryMergeTool from lejstuff from Andrew Lindesay and it looks promising. As it appears to convert property files to <env-entry> in the web.xml file, but running it out of the box I got IO.exceptions.

- Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to