[jboss-user] [JNDI/Naming/Network] - Re: datasource
waynebaylor
do-not-reply at jboss.com
Wed Aug 15 17:34:33 EDT 2007
on second thought, when you deploy the oracle-ds.xml JBoss will create the jndi entry for mcv_test. so you should be able to look it up without any resource-ref tags in your xml files.
for example:
my oracle-ds.xml
<jndi-name>OracleDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
|
and i can look it up with:
DataSource ds = (DataSource)new InitialContext().lookup("java:/OracleDS");
and i have no resource-ref tags in web.xml or jboss-web.xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074592#4074592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074592
More information about the jboss-user
mailing list