Deploying Multiple Environments in Spring-MVC
Posted
by jboyd
on Stack Overflow
See other posts from Stack Overflow
or by jboyd
Published on 2010-04-25T14:39:29Z
Indexed on
2010/04/25
14:43 UTC
Read the original article
Hit count: 286
Currently all web apps are deployed using seperate config files:
<!-- <import bean.... production/> -->
<import bean... development/>
This has disadvantages, even if you only need to swap out one config file, that I'm sure everyone is familiar with (wondering what just deployed without searching through XML is one of them)
I want to add Logging to my application that basically says 'RUNNING IN PRODUCTION MODE', with a description of the services deployed and what mode they are working in.
RUNNING IN PRODUCTION MODE
Client Service - Production
Messaging Service - Local
and so on...
Is this possible in Spring using a conventional deployment (putting a war on a server)? What other things do people do to manage deployments and software configurations?
If not, what other ways could you achieve something similar?
© Stack Overflow or respective owner