Hi,

I've come across the same issue when trying to create a Oracle User Defined 
Array via the ArrayDescriptor. The issue is that the Connection object returned 
by Jboss is a WrappedConnection.  

One possible way to resolve the issue is by doing something like the following:
WrappedConnection.getUnderlyingConnection() . This will require importing 
(include jboss-common-jdbc-wrapper.jar with WrappedConnection class).

A better way, which I'm looking for, is to somehow configure jboss to give me 
an OracleConnectionPool directly like it does in tomcat by configuring the 
server.xml like so:

Tomcat 5.5

name="jdbc/my_jndi_name" auth="Container" 
type="oracle.jdbc.pool.OracleDataSource" 
factory="oracle.jdbc.pool.OracleDataSourceFactory"
maxActive="20" maxIdle="10" maxWait="10000"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@my_db_url:1521:my_db" user="user" password="pw" 
connectionCachingEnabled="true"

Does anybody know how to configure Jboss to expliclty return an 
OracleDataSource? I've looked over all the jboss documentation and don't see 
any attribute to do something similar to the fix above for Tomcat?

Thanks in advance,


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919673#3919673

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919673


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to