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]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to