0 Replies Latest reply on May 3, 2007 3:57 PM by Chip Schoch

    Scoped Loader yields null InitialContext.lookup on datasourc

    Chip Schoch Novice

      JBossAs 4.2.0.CR2
      JBossMessaging 1.0.1.GA

      I have several MBeans that use some shared code I have developed. I am trying to use scoped loading by adding this to my jboss-service.xml:


      When I do this my jndi lookup returns a null datasource, not a NamingNotFoundException, but a null.

      m_dataSource = (DataSource) cnew InitialContext().lookup (java:/DefaultDS");

      When I remove the loader scoping or change it to:


      It works fine. I just have other issues. Does anyone have any idea why this is so>