Subject says it all... What am I doing wrong here? Apparently the
WrappedCallableStatement implementation that JBoss uses is doing something to prevent
the casting, but what do I do to get around that?
connection = getConnection("OracleDS");
|
| logger.finer("Calling request_list.get_default_request_list");
|
| cst = connection.prepareCall("{call request_list.get_default_request_list
(?,?,?)}");
| cst.setInt(1, 1);
| cst.setInt(2, 1);
| cst.registerOutParameter(3, OracleTypes.CURSOR);
| cst.execute();
|
| rs = ((OracleCallableStatement)cst).getCursor(3);
And getConnection is implemented as:
private java.sql.Connection getConnection (String resourceName)
| throws NamingException, SQLException {
|
| logger.finer("Obtaining JNDI context.");
| //Obtain the JDNI context
| Context context = new InitialContext();
|
| logger.finer("JNDI Lookup to get the resource manager connection factory
reference");
| //JNDI Lookup to get the resource manager connection factory reference
| javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup("java:/jdbc/"
+ resourceName);
|
| logger.finer("Invoke factory to obtain a connection and return connection to
calling environment");
| //Invoke factory to obtain a connection and return connection to calling
| //environment
| return ds.getConnection();
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839422#3839422
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839422
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user