[jboss-user] [Datasource Configuration] - Oracle User Type Mappings
Bob Frapples
do-not-reply at jboss.com
Wed Jul 21 14:53:17 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/553815#553815
--------------------------------------------------------------
I'm pretty sure:
new InitialContext().lookup("jdbc/MyDS");
gets the data source from the JNDI context as defined in JBoss in the myDS-ds.xml file.
To get the Spiring data source bean I use:
org.springframework.context.ApplicationContext.getBean("dataSource");
Ultimately I need the Spring configuration because I am defining a whole pile of StoredProcedure beans that need the dataSource as a constructor argument.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553815#553815]
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/5ea0036c/attachment.html
More information about the jboss-user
mailing list