Thread:
 Unwrapping WebSphere connection pools 
 dlandis   12 Jul 2006, 16:37 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: dlandis (12 Jul 2006, 16:37) Replies: 0, Views: 25584
Subject: Unwrapping WebSphere connection pools
If anyone needs to use the StringClobType scenario with WebSphere
connection pools, you must un-wrap the connection in nullSafeSet() as
mentioned above.

The way to do that is modify to this:

[code]
Connection conn = dbMetaData.getConnection();
                    
//unwrapping connection: required when using a connection pool
Object oconn = WSJdbcUtil.getNativeConnection((WSJdbcConnection)conn);
[/code]

Then change all references below that from conn to oconn.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]