X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A97C55284B for ; Wed, 8 Jun 2005 16:19:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21358-10 for ; Wed, 8 Jun 2005 19:19:37 +0000 (GMT) Received: from gropa.frojonck.dk (unknown [217.116.234.122]) by svr1.postgresql.org (Postfix) with ESMTP id D25455284D for ; Wed, 8 Jun 2005 16:19:36 -0300 (ADT) Received: from [192.168.0.100] (torben.family [192.168.0.100]) by gropa.frojonck.dk (Postfix) with ESMTP id A792C1A8004 for ; Wed, 8 Jun 2005 15:19:33 -0400 (EDT) Message-ID: <42A744C4.8060009@frojonck.dk> Date: Wed, 08 Jun 2005 21:19:32 +0200 From: torben User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Jboss and largeObjectManager References: <42A7372C.7000509@frojonck.dk> <200506081451.38630@vadim.nasardinov> In-Reply-To: <200506081451.38630@vadim.nasardinov> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/43 X-Sequence-Number: 13005 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#getUnderlyingConnection%28%29 > >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.