On 3/3/2011 11:44 AM, Olivier Lefevre wrote:
> On 3/3/2011 5:17 PM, Filip Hanik - Dev Lists wrote:
>> If it is configured in the application context, then this simply means
>> you forgot to call DataSource.close on the connection pool when your
>> web application is stopped.
> This is confusing advice because javax.sql.DataSource
> doesn't have a close() method.
In order to call close, one has to cast it to what ever the data source you are using.
That is why it's easier to define these types of resources as spring beans, since spring takes
care of that for you
> Also, I have this element in my webapp context.xml
>
> <Resource name="jdbc/AppDesignerDB"
> auth="Container"
> type="javax.sql.DataSource"
> ..../>
>
> and I don't get the error the OP reported. Are you both
> talking about something else?
It will only start a thread if you have configured it to do clean up while running
Filip
> Regards,
>
> -- O.L.
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1204 / Virus Database: 1435/3479 - Release Date: 03/03/11
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|