Adding to it..

as usual In server.xml, resource need to mentioned the type,
driverClassName, url and connectivity parameter of PostgreSql db.

as usual In a context.xml, ResourceLink name, global, type

<ResourceLink name="jdbc/DB_NAME" global="jdbc/DB_NAME"
type="javax.sql.DataSource"/>



and allow the IP of tomcat at db end in pg_hba.conf file to connect the db.



On Fri, Jun 7, 2013 at 10:52 AM, Lutischán Ferenc <lutisch...@gmail.com>wrote:

> Hi,
>
> on 2013.06.06. 22:45, Hector Del Mestre wrote:
>
>  Well, now the fatal question:
>> Tomcat need any special configuration to use PostgreSQL?
>>
> I have some ideas:
> - The jdbc driver must be in the {Tomcat home}/lib.
> - If you use the tomcat pool manager append the testOnBorrow="true" to the
> Resource tag.
>
> Regards,
>       Ferenc
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org>
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to