tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhaval Jaiswal <dhaval.jais...@via.com>
Subject Re: Tomcat and PostgreeSQL
Date Fri, 07 Jun 2013 05:37:19 GMT
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 <lutischanf@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-unsubscribe@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message