users@glassfish.java.net

Re: configuring datasource for postgresql

From: Shalini <shalini.muthukrishnan_at_oracle.com>
Date: Wed, 19 Oct 2011 11:11:00 +0530

Hi,

Yes, you have to create a new JDBC connection pool and JDBC resource for
the new domain if you want to leverage the jdbc functionalities of
GlassFish. The JDBC driver could also be installed in glassfish_home/lib
directory instead of glassfish_home/domains/domain1/lib directory.

The configuration of datasources are not shared across domains in
GlassFish.

HTH,
Shalini.

On Tuesday 18 October 2011 04:16 AM, Leonardo wrote:
> hello everyone,
>
> i found lthat tutorial about how to configure datasource for postrgresql:
> http://www.hildeberto.com/2010/02/creating-connection-pool-to-postgresql.html
>
> but one question remains: is there any other way?
>
> thanks iin advance.
>
> i'm specifically concerning about the "domain1/lib" part, if for some
> reason i create another domain, will i need to recreate the
> datasource?