[jboss-user] [Datasource Configuration] - Oracle User Type Mappings
jaikiran pai
do-not-reply at jboss.com
Wed Jul 21 05:52:21 EDT 2010
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"Oracle User Type Mappings"
To view the discussion, visit: http://community.jboss.org/message/553644#553644
--------------------------------------------------------------
> Bob Frapples wrote:
>
>
>
> {code}
>
> ((DataSource)ctx.getBean("dataSource")).getConnection.setTypeMap(MyMappings.TYPE_MAP);
>
> {code}
>
Try:
Connection c = dataSource.getConnection();
org.jboss.resource.adapter.jdbc.WrappedConnection wc = (WrappedConnection) c;
wc.getUnderlyingConnection().setTypeMap(MyMappings.TYPE_MAP);
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553644#553644]
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/246584a5/attachment-0001.html
More information about the jboss-user
mailing list