[jboss-user] [Datasource Configuration] - Oracle User Type Mappings

Bob Frapples do-not-reply at jboss.com
Wed Jul 21 13:53:13 EDT 2010


Bob Frapples [http://community.jboss.org/people/ThisRegistrationSucks] replied to the discussion

"Oracle User Type Mappings"

To view the discussion, visit: http://community.jboss.org/message/553801#553801

--------------------------------------------------------------
I implemented this code:

DataSource ds = (DataSource)
*new InitialContext().lookup("jdbc/MyDS"); // replace this with your datasource deployed in JBossConnection con = ds.getConnection();
System.+out.println("Connection is " + con.getClass().getName());+ org.jboss.resource.adapter.jdbc.WrappedConnection wc = (WrappedConnection) con;
Connection uc = wc.getUnderlyingConnection();
System.+out.println("Underlying Connection is " + uc);+
++ 
+And I get this error:+
+13:48:50,276 INFO [STDOUT] Connection is $Proxy339
13:48:50,276 ERROR [STDERR]
java.lang.ClassCastException: $Proxy339 cannot be cast to org.jboss.resource.adapter.jdbc.WrappedConnection
+
+
+
+
+
*


--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553801#553801]

Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100721/d6abdc53/attachment.html 


More information about the jboss-user mailing list