[EMAIL PROTECTED] wrote:
Hello,

could you give some advise about best practice on placing changeable files under a web root? I guess in any webapp you'd like to place files in a subdirectory of your webapp (maybe even in WEB-INF), like uploaded files. But when you work with WAR files this is impossible, or at least not a good idea, as you state. So where do you generally place these files?

Its a bad practice of placing modifiable files in the WAR for several reasons:

1. it really makes it difficult to treat a WAR file as a simple deployable unit. If you change a Java class, and want to simply drop in the new war file following your application servers deployment process, it makes a royal pain of dealing with modifiable files

2. This solution plain doesnt work on clustered app servers

With PSML files, first and foremost, place the files somewhere where they will be backed up. You can use a full file system path in the Spring configuration in the page-manager.xml. Please beware that you have to change this location for ALL 5 handlers. Something like:

<constructor-arg index="3">
   <value>${applicationRoot}/WEB-INF/pages</value>
</constructor-arg>

to

<constructor-arg index="3">
   <value>/usr/local/portal-data/pages</value>
</constructor-arg>


Also recommend looking into the DB PSML option

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to