1 Reply Latest reply on Dec 1, 2003 9:35 AM by Adrian Brock

    javax.naming.NameNotFoundException: SecureDS not bound (mbea


      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);

      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)


      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager

      Thanks for your help.