I would like to run my spring application two times, in parallel, on the same tomcat server. One time with a production
profile and one time with a dev
profile.
I also would like to build one single WAR for the two profiles.
I've successfully integrated profiles in my application with @Profile
annotations. I've successfully deployed the two WAR files on my tomcat server.
What I need is a mean to activate a different profile on each of theses two applications, with the constraint that these two applications use a copy of the same WAR file and that the two applications should run in parallel.
So WebApplicationInitializer
and web.xml
seem not an option.