pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Jboss and largeObjectManager
3+ messages / 2 participants
[nested] [flat]

* Jboss and largeObjectManager
@ 2005-06-08 18:21  torben <torben@frojonck.dk>
  0 siblings, 1 reply; 3+ messages in thread

From: torben @ 2005-06-08 18:21 UTC (permalink / raw)
  To: pgsql-jdbc

I am using Jbos 4.0 and postgresql 7.3 as database. As datasource I have 
pooled connection (local-tx-datasource).

As long as I do not work with large object it seems to be fine.

But how do get an instance of the LargeObjectManager.
When I try to do
       
LargeObjectManager lobj = ((org.postgresql.PGConnection) 
dbcon).getLargeObjectAPI();

I get the error java.lang.ClassCastException: 
org.jboss.resource.adapter.jdbc.WrappedConnection

I hope someone can help me.

Best regards

Torben Froeberg








^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Jboss and largeObjectManager
@ 2005-06-08 18:51  Vadim Nasardinov <vadimn@redhat.com>
  parent: torben <torben@frojonck.dk>
  0 siblings, 1 reply; 3+ messages in thread

From: Vadim Nasardinov @ 2005-06-08 18:51 UTC (permalink / raw)
  To: 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#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.)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Jboss and largeObjectManager
@ 2005-06-08 19:19  torben <torben@frojonck.dk>
  parent: Vadim Nasardinov <vadimn@redhat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: torben @ 2005-06-08 19:19 UTC (permalink / raw)
  To: pgsql-jdbc

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.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-06-08 19:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-08 18:21 Jboss and largeObjectManager torben <torben@frojonck.dk>
2005-06-08 18:51 ` Vadim Nasardinov <vadimn@redhat.com>
2005-06-08 19:19   ` torben <torben@frojonck.dk>

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