Re: Jboss and largeObjectManager

From: Vadim Nasardinov <vadimn(at)redhat(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Jboss and largeObjectManager
Date: 2005-06-08 18:51:38
Message-ID: 200506081451.38630@vadim.nasardinov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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#getUnderlyingConnection%28%29

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.)

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nelson Arapé 2005-06-08 18:56:51 Re: FW: PostgreSQL JDBC Installation
Previous Message torben 2005-06-08 18:21:32 Jboss and largeObjectManager