Win a copy of Programmers Guide to Apache Thrift this week in the Open Source forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Modifying web.xml after enterprise application is already deployed  RSS feed

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!