I am obtaining vendor's database connection via ((com.caucho.sql.UserConnection) _connection).getConnection()

The reason I need to do this is Oracle's XSQL servlet that needs Oracle-specific features for some operations.

The problem is that it handles opening and closing of connections on it's own. All I can do is to pass a DataSource object to it. I need to pass an OracleConnection object but I can't let XSQL Server close that connection. Instead, I decided to try to close Resin connection before passing the unwrapped OracleConnection to XSQL engine.

I've tested it and it seems to work. No messages about dangling connections or problems with subsequent use unwrapped object.

What happens if I close Resin's connection before I actually use the vendor's, unwrapped , connection ?

Resin 3.1.3/JDK 1.6

Thanks,
Dragisa
begin:vcard
fn:Dragisa Krsmanovic
n:Krsmanovic;Dragisa
org:Xpiron Inc.
adr:Suite 400;;582 Market St.;San Francisco;CA;94104;USA
email;internet:[EMAIL PROTECTED]
title:Senior Developer
tel;work:(415) 732-5703
tel;fax:(415) 732-5706
x-mozilla-html:TRUE
url:http://www.xpiron.com
version:2.1
end:vcard

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to