5 Replies Latest reply on Jul 9, 2002 10:43 AM by Jamie Burns

    how to look up my DataSource

    Xbird Newbie

      after put my oracle-service.xml to the jboss deploy folder.(The database JNDI name is oradb)
      when i use following codes in my servlet:
      InitialContext jndiContext = new InitialContext();
      DataSource ds=(DataSource) jndiContext.lookup("java:comp/env/OracleDS");

      but jboss report javax.naming.NameNotFoundException: OracleDS not bound.

      how i can do?