This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Modifying web.xml after enterprise application is already deployed

 
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!