have to manually put ResourceParams in server.xml
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Sweeney
Posted On:   Monday, March 7, 2005 06:52 AM

In my servlet init, I establish a DataSource: (see Tomcat Kickstart chapter 9)



dataSource = (DataSource) ctx.lookup("jdbc/oracle");



...and I have a in the web.xml for that app. But the : I have to manually put it in server.xml after I do the ant deploy . There must be a better way...

Re: have to manually put ResourceParams in server.xml

Posted By:   Anonymous  
Posted On:   Tuesday, March 8, 2005 01:10 AM

There is an external task library (xmltasks) for manipulating xml files.

Re: have to manually put ResourceParams in server.xml

Posted By:   Michael_Sweeney  
Posted On:   Monday, March 7, 2005 07:03 AM

...which of course means I have to restart Tomcat (after tweeking server.xml), which is not really an option.
About | Sitemap | Contact