I am trying to configure Oracle datasource in JBoess.
1. I created the file oracle-ds.xml with the content:
<?xml version="1.0" encoding="UTF-8"?>
2. updated in the lib the relevant jar with the jdbc driver.
3. define in my application a datasource by:
in case connection="bilby" I get:
javax.naming.NameNotFoundException: bilby not bound
and in case connection="java:bilby" I get: null object
even though JBoss print in its output the line:
18:37:56,560 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=bilby' to JNDI name 'java:bilby'
and I also can see this datasource defined in the JMX web-console (Started with state=3)
Why can't I get the datasource that I defined? perhaps there is a security issue that doesn't allow application recieve java resource automatically and I still need to cofigure something else to allow it?
See also (here