This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Deployment plan to override values in web.xml and ejb-jar.xml
posted 6 years ago
Could someone tell me if it is possible to use plan.xml to override <env-entry> values in web.xml and ejb-jar.xml.
I have an entry like,. in web.xml and ejb-jar.xml(one entry for each of my EJBs). In my application, I lookup the value using JNDI like, ic.lookup("java:comp/env/my_env"). If I have hardcoded values in web.xml and ejb-jar.xml, everything works fine. Now I need to use deployment plan to override the value to staging and production. My plan.xml looks like this