tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Germán Ferrari <german.ferr...@gmail.com>
Subject Re: tomcat-jdbc: correct way to create a new separated org.apache.tomcat.jdbc.pool.DataSource from another one
Date Wed, 08 Aug 2012 16:24:12 GMT
Hello,

On Wed, Aug 8, 2012 at 9:19 AM, Daniel Mikusa <dmikusa@vmware.com> wrote:

> > (...)
> >
>
> Have you looked at the method "parsePoolProperties" on the
> DataSourceFactory class?
>
>   public static PoolConfiguration parsePoolProperties(Properties
> properties)
>
> You could load your configuration into a Properties object, create you
> first pool configuration with "parsePoolProperties", alter the Properties
> object and then call "parsePoolProperties" on the modified Properties
> object to create your second pool configuration.
>
> Dan
>
>
>
Thank you, I had not looked that method. I guess it's a valid option in my
case because I could add or change some parameter to pass the Properties
object. Anyway it would be good to find a way to create a copy of the
DataSource directly.

Regards,
Germán



>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 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