You didn't understand my problem :
My configuration requires a path that is system dependent. I cannot
include this info in my WAR. I need to set it on the production server.
I'm using a single system property that gives me a filesystem path (or
URL) and get it in my app to setup application properties that are
system dependent. But this require to change the appserver JVM
configuration and I cannot deploy my webapp twice on the same server
with different configs (for example to deploy version N and N+1).
What would be the "JEE way" to do this ?
Kalra, Ashwani a écrit :
You can set them in your startup class by reading the configuration
file.
System.setProperty()
/Ashwani
-----Original Message-----
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 1:08 PM
To: Struts Users Mailing List
Subject: Best practice for external webapp configuration ?
Hello,
I'm searching for best practice in JEE applications to put configuration
elements outside the war/ear.
Here is what I mean : My webapp requires some filesystem path to work
(logs dir, system-dependent config files...). I'm using a java sytem
property to setup a root path for external configuration, but this
requires to customize the container JVM ("-Dxxx=yyy"). Is there a better
"JEE" way to do such things ?
Nico.
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]