I have a Spring 3.1 web app that runs in Tomcat. I have set up several profiles, and I am currently switching between them using -Dspring.profiles.active="[profile]" as a VM argument. I would like to be able to specify the profile in Tomcat's conf/context.xml. Is there a way for the context in this file to be included in the Spring context?

Thanks for any help you can offer.