Skip site navigation (1) Skip section navigation (2)

Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6

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 (view raw or flat)
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

In response to

pgsql-jdbc by date

Next:From: ahmet temizDate: 2008-12-26 17:53:53
Subject: what to do to display largeobject (image)
Previous:From: Albe LaurenzDate: 2008-12-23 08:12:12
Subject: Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group