1 Reply Latest reply on Sep 3, 2002 9:47 AM by pvamstel

    jndi name of datasource not bound

    srinidhikr

      Hi,

      i am new to j2ee and jboss.

      I am using a startup class as mbean .

      In some method of startup class

      i am trying to lookup a jndi name "OnMobileDSN"


      DataSource ds = (DataSource) ctx.lookup ("OnmobileDSN");

      Also in oracle-service.xml

      i am binding the datasource to this name as

      OnMobileDSN


      During server startup the jndiname is bound to java:/OnMobileDSN

      but during my mbean startup i am getting the exception

      16:08:22,257 ERROR [STDERR] javax.naming.NameNotFoundException: OnMobileDSN not
      bound


      i wud appreciate help from anyone.

      Thanks
      Srinidhi