This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modifying web.xml after enterprise application is already deployed

 
Martin Lira
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
 
Scott Duncan
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 ]
 
Dminds Soln
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