> It looks like I'd setup PropertyPlaceholderConfigurer to just point to
> wherever the properties file should be - does that go in
> deployerConfigContext?
Yes.
> Also, in your environment, where do the properties files live?
First, in our environment the VMs are dedicated to a single purpose
with a single application user (aka service user). We get what is
effectively an application user home directory, and under this lives
application binaries (e.g. Tomcat), and all configuration data. The
CAS configuration _and_ deployable live in /apps/local/cas, and we use
servlet contexts in Tomcat to point to the absolute path of the
deployable, /apps/local/cas/cas-server.war.
> Can you just
> drop them beside the cas.war file, and will Tomcat play nicely, or do you
> keep them outside of that entirely?
You can organize them however suits your needs. I like having
deployables and configuration under one directory or directory tree.
> I'm still not 100% exactly sure how paths evaluate in these circumstances
We stick to absolute paths to avoid ambiguity. I believe Tomcat
evaluates relative paths by appending them to $CATALINA_BASE, but I
wouldn't swear on it.
> relative path scheme now and stick with it, so I don't have to worry about
> where/how Tomcat is installed on a particular target system.
In our case the location of Tomcat is invariant across dev/pprd/prod.
However, the path to Tomcat on my development workstation is
different. To help accommodate this, I set an "uber property" called
${cas.home} that I can override via maven -D flags at build time to
facilitate local testing and development, e.g.,
mvn -Dcas.home=/home/marvin/apps/tomcat clean package
This strategy leverages maven property replacement to replace the
${cas.home} placeholder in the following bean with an absolute path at
_build_ time:
<bean id="propertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file://${cas.home}/cas.properties</value>
<value>file://${cas.home}/vt-env.properties</value>
</list>
</property>
</bean>
M
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user