Unix Technical Forum

Jboss and largeObjectManager

This is a discussion on Jboss and largeObjectManager within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> I am using Jbos 4.0 and postgresql 7.3 as database. As datasource I have pooled connection (local-tx-datasource). As long ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 12:19 AM
torben
 
Posts: n/a
Default Jboss and largeObjectManager

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






---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:19 AM
Vadim Nasardinov
 
Posts: n/a
Default Re: Jboss and largeObjectManager

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/javado...ection%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.)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 12:19 AM
torben
 
Posts: n/a
Default Re: Jboss and largeObjectManager

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.WrappedConnectio n
>>
>>

>
>I'm not a JBoss programmer, but looking at the JBoss Javadoc at
>
>http://docs.jboss.org/jbossas/javado...ection%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.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com