3 Replies Latest reply on Jan 5, 2004 2:01 AM by juha


    Pradeep kumar Newbie

      I am using JBOSS as my APP server. I had configured my Datasource "TestOracle" to an Oracle Database in oracle-ds.xml file
      When I try to access the DataSource from a java client i am getting an error.
      javax.naming.NameNotFoundException : TestOracle not bound.
      But as in App Console it displays
      16:02:11,576 INFO [TestOracle] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:servic
      e=LocalTxCM,name=TestOracle to JNDI name 'java:/TestOracle'

      The java client code is:
      InitialContext ctx = new InitialContext(getEnvironment());
      DataSource ds = (DataSource) ctx.lookup("java:/OracleDS");

      Am i missing something.