thanks!
I have another problem:
These resources use jar files which i need to put in tomcat/common/lib.
Is there away i can put them under tomcat/webapps/myApp/WEB-INF/lib and
tell tomcat that they are there?
I need the whole application to be under one directory without changing
anything in other tomcat libraries.
steen@jost.dk - 06 Oct 2005 12:22 GMT
Hey,
I'd like to get one thing straight. Moving the datasource into the
web-app itself, wont that complicate matters if you have a staging
environment where the datasource points to a test database instead of
the live one ?
I'm having a major discussion with a co-worker about this, and would
like to hear other people's views to this.
/Steen
reformy@gmail.com - 10 Oct 2005 13:58 GMT
Why doe's it complicate matters? This web-app is the only one using
this datasource. There is no other web-app.
anyway, i still don't have an answer for moving the lib inside the
web-app, so it doesn't metter.
> As an alternate, you can put your context in its own file, say
> "context.xml", and put that file in your webapp's META-INF folder.
But this is a Tomcat-specific solution, isn't it? The deployment
descriptor is covered by the API and thus should be completely
transportable between containers. I see no reference to your technique
in Servlet API 2.4.
H. Townsend
Bryce - 06 Oct 2005 16:41 GMT
>> As an alternate, you can put your context in its own file, say
>> "context.xml", and put that file in your webapp's META-INF folder.
[quoted text clipped - 3 lines]
>transportable between containers. I see no reference to your technique
>in Servlet API 2.4.
Oh, its quite possible that its Tomcat specific. Not sure.
--
now with more cowbell
Bryce - 13 Oct 2005 15:36 GMT
>> As an alternate, you can put your context in its own file, say
>> "context.xml", and put that file in your webapp's META-INF folder.
[quoted text clipped - 3 lines]
>transportable between containers. I see no reference to your technique
>in Servlet API 2.4.
But the way Tomcat defines datasources to begin with is Tomcat
specific... Only the web.xml is in the Servlet API...
--
now with more cowbell