Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool
with tomcat 1.2.9)

Ken Bowen

2007-07-15

Replies:

Indeed. Simply swapping the Context given in

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html,

in for the Context given in

http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html

makes the 4.1 example work.  This way makes it clear what has changed.

Thanks very much.

Ken

Lyallex wrote:
> Hi
>
> How confused do you want to be ....
>
> I started looking at the 4.1 docs as well ... it'll never work
> I do object to having to download taglibs just to get a simple example
> working so you can keep all the code from the 4.1 example including
> the web.xml entry
> All you really need to change is the server.xml configuration as
> described in
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html,
>
> at least this is what I did and the example seems to work OK.
>
> One thing that constantly frustrates me is the apparent ambiguities in
> the documentation (it's not a criticism before anyone gets upset) the
> docs state
> 'Add this in between the </Context> tag of the examples context and
> the </Host> tag closing the localhost definition'
> Well there isn't a Context tag in my distro so I just invented one and
> it works, of course we are always being advised to put our <Context>
> thing in our web apps these days so that's what I'm going to try next.
>
> Good Luck
>
> Chers
> Duncan
>
> On 7/15/07, Caldarale, Charles R <Chuck.Caldarale@(protected):
>> > From: Ken Bowen [mailto:kbowen@(protected)]
>> > Subject: DataSources and Tomcat (continue thread: Re: How to
>> > use connectionpool with tomcat 1.2.9)
>> >
>> > I also want to get the Tomcat DataSource machinery working.
>> > I'm using Tomcat 5.5.9.
>> >
>> > I've slavishly followed the mySQL example in
>> >
>> http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h
>> tml
>>
>> If you're using 5.5, why are you spending any time looking at the 4.1
>> documentation? Try using the correct doc for the level you have:
>> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
>> tml
>>
>> - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the e-mail
>> and its attachments from all computers.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@(protected)
>> To unsubscribe, e-mail: users-unsubscribe@(protected)
>> For additional commands, e-mail: users-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.