From: torben <torben@frojonck.dk>
To: pgsql-jdbc@postgresql.org
Subject: Re: Jboss and largeObjectManager
Date: Wed, 08 Jun 2005 21:19:32 +0200
Message-ID: <42A744C4.8060009@frojonck.dk> (raw)
In-Reply-To: <200506081451.38630@vadim.nasardinov>
References: <42A7372C.7000509@frojonck.dk>
<200506081451.38630@vadim.nasardinov>
Vadim Nasardinov wrote:
>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();
>
>
>
Thank's very much. It was exactly what I needed.
>(As a side note, this question should've been directed to some JBoss-specific
>list.)
>
>
Yes, I can see it now it was the wrong 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: torben@frojonck.dk
Subject: Re: Jboss and largeObjectManager
In-Reply-To: <42A744C4.8060009@frojonck.dk>
References: <42A7372C.7000509@frojonck.dk> <200506081451.38630@vadim.nasardinov> <42A744C4.8060009@frojonck.dk>
* 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