How to setup Environment Variables?
I have SpringSource Tool Suite with the built-in tc Server Developer Edition v2.1. I would like to setup an Environment variable indicating that it is in a DEV or TEST env plus some other config settings. With a install outside of the developer's tool I assume I would do something like creating a setenv.bat script that would be invoked at startup. How is this done in the Tool Suite? I have already added a 'context.xml' file to my Server via Package Explorer. Do I do something similar in this case?
How to setup Environment Variables?
Thanks for the reply Martin. I decided to add <Environment> entities in the
<GlobalNamingResources> section of server.xml. I then created a file called context.xml at the web app level and then have specified beans of class="org.springframework.jndi.JndiObjectFactoryB ean" in my applicationContext.xml file. It works. Does this seem like a correct approach?