From: | "Dave Cramer" <pg(at)fastcrypt(dot)com> |
---|---|
To: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
Cc: | ahmettemiz88(at)gmail(dot)com, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |
Date: | 2008-12-23 11:58:40 |
Message-ID: | 491f66a50812230358j784bde0ft72f34413e06c6cc4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Tue, Dec 23, 2008 at 3:12 AM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>wrote:
> ahmettemiz88 wrote:
> > I am trying to Retrieve image ( Large Object) from pooled PostgreSQL /
> > tomcat 6:
> >
> > I am having some exceptions from following
> >
> > ds = (DataSource) ctx.lookup("java:comp/env/jdbc/bzk2");
> > Connection conn = ds.getConnection();
> > PGConnection pgCon = (PGConnection) ((DelegatingConnection)conn) //
> > ****exception
> > .getInnermostDelegate();
> >
> > lobj = ((org.postgresql.PGConnection)pgCon).getLargeObjectAPI();
> >
> [...]
> > org.apache.tomcat.dbcp.dbcp.PoolingDataSource
> > $PoolGuardConnectionWrapper cannot be cast to
> > org.apache.commons.dbcp.DelegatingConnection
> >
> >
> > how can I solve the problem ?
> You have to get the underlying connection from the pooled connection.
>
Dave
From | Date | Subject | |
---|---|---|---|
Next Message | ahmet temiz | 2008-12-26 17:53:53 | what to do to display largeobject (image) |
Previous Message | Albe Laurenz | 2008-12-23 08:12:12 | Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |