Re: Configuring a Data Resource in web.xml

2004-02-16 Thread Harry Mantheakis
I not think you can put the JNDI/Resource stuff in the deployment descriptor, though I stand to be corrected (!) AFAIK the JNDI/Resource stuff is placed within an application's 'Context' element. With Tomcat 5 you can have separate context fragments - individual XML documents - for each

Re: Configuring a Data Resource in web.xml

2004-02-16 Thread Jacob Kjome
At 10:16 AM 2/16/2004 +, you wrote: I not think you can put the JNDI/Resource stuff in the deployment descriptor, though I stand to be corrected (!) Well, get ready to start standing resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name

Re: Configuring a Data Resource in web.xml

2004-02-16 Thread Harry Mantheakis
Well, get ready to start standing I knew about the bit that goes in the deployment descriptor (!) It was 'the rest' I was referring to :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Configuring a Data Resource in web.xml

2004-02-16 Thread SMaric
Have used this for MySQL DB - am NOT totally sure that it is completely correct This is what works for me - (see NOTES at end - if anyone can shed any light on Limiting Pool size) #1in your Server.xml GlobalNamingResources Resource name=MySQLDataSourceFactory

Configuring a Data Resource in web.xml

2004-02-15 Thread Mike Duffy
The reference book I have shows how to configure a data resource (JDBC) in the server.xml. Does anyone have a reference on how to do this in the web.xml? I'd like to be able to unpack a war and have everything run, without the need to edit the server.xml. Thanks for your help. Mike

Re: Configuring a Data Resource in web.xml

2004-02-15 Thread Jose Alfonso Martinez
I don't think you can. In web.xml you only make the named DataSource available for your webapp, but the DataSource must be setted up already (in server.xml)... Therefore, I think there is no possible way to do it. Does anyone know a solution, I will be interested to know it too! Jose On