From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Jboss and largeObjectManager
Date: Wed, 8 Jun 2005 14:51:38 -0400
Message-ID: <200506081451.38630@vadim.nasardinov> (raw)
In-Reply-To: <42A7372C.7000509@frojonck.dk>
References: <42A7372C.7000509@frojonck.dk>
On Wednesday 08 June 2005 14:21, torben wrote:
> LargeObjectManager lobj = ((org.postgresql.PGConnection) dbcon).getLargeObjectAPI();
>
> I get the error java.lang.ClassCastException:
> org.jboss.resource.adapter.jdbc.WrappedConnection
I'm not a JBoss programmer, but looking at the JBoss Javadoc at
http://docs.jboss.org/jbossas/javadoc/4.0.2/org/jboss/resource/adapter/jdbc/WrappedConnection.html#g...
it seems to me that what you want to do is
LargeObjectManager lobj =
((org.postgresql.PGConnection) dbcon.getUnderlyingConnection()).getLargeObjectAPI();
(As a side note, this question should've been directed to some JBoss-specific
list.)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: vadimn@redhat.com
Subject: Re: Jboss and largeObjectManager
In-Reply-To: <200506081451.38630@vadim.nasardinov>
References: <42A7372C.7000509@frojonck.dk> <200506081451.38630@vadim.nasardinov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox