• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Modifying web.xml after enterprise application is already deployed

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have an enterprise application (EAR file) that is deployed on a WAS 5.0. It consists of couple of web modules (WAR files). I made changes in some beans used in one of the web modules and added a new DataSource. Is there any way I can directly go and modify the web.xml for the web module and specify the resource references to the new DataSource directly rather than going through the process of redeploying?

Thanks,
Martin
 
Ranch Hand
Posts: 365
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. The web.xml file is cached in the WebSphere config/cells/cell_name/applications/ear_name/deployements/app_name/war_name/WEB-INF directory. You have to make the changes in both places (the cache and the app) and then restart the application.

Honestly, you are better of just doing an update.
 
Martin Lira
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for pointing that out William. But I found a work around. I am using the jndi name directly instead of the resource reference "java:comp/env/jdbc/ds". Is there any drawback of using this?


Thanks,
ML

[ August 30, 2004: Message edited by: Martin Lira ]
[ August 30, 2004: Message edited by: Martin Lira ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Scott Duncan wrote:Yes. The web.xml file is cached in the WebSphere config/cells/cell_name/applications/ear_name/deployements/app_name/war_name/WEB-INF directory. You have to make the changes in both places (the cache and the app) and then restart the application.

Honestly, you are better of just doing an update.



Thanks for the hint...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic