Re: Jboss and largeObjectManager - Mailing list pgsql-jdbc

From Vadim Nasardinov
Subject Re: Jboss and largeObjectManager
Date
Msg-id 200506081451.38630@vadim.nasardinov
Whole thread Raw
In response to Jboss and largeObjectManager  (torben <torben@frojonck.dk>)
Responses Re: Jboss and largeObjectManager
List 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.)

pgsql-jdbc by date:

Previous
From: torben
Date:
Subject: Jboss and largeObjectManager
Next
From: Nelson Arapé
Date:
Subject: Re: FW: PostgreSQL JDBC Installation