I have configured a datasource with JNDI name SecureDS. However, I don't see the JNDI name
in the jmx-console and am not able to grab
the DS from the context, what am I doing wrong?
InitialContext ctx = new InitialContext();
theDataSource = (javax.sql.DataSource)ctx.lookup(dataSourceName);
---error
Caused by: javax.naming.NameNotFoundException: SecureDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
---config
SecureDS
<depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager
......
Thanks for your help.
/Ray
java:/SecureDS
Regards,
Adrian