1 Reply Latest reply on Jan 10, 2007 10:49 AM by oglueck

    problem in using ServiceFactoryImpl

    mr662 Newbie

      I am trying to consume a remote web service from my EJB running inside JBoss. I want to use ServiceFactoryImp class and am packging "wsdl" and "jaxrpc-mapping.xml" files inside my EJB JAR file as


      How do I create the URLs for these files for passing to createService() method of ServiceFactoryImpl class, since EJB specs forbid direct file access?

      I have tried following, but it returns null URLs

      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      URL mappingURL = cl.getResource("jaxrpc-mapping.xml");
      URL wsdlLocationUrl = cl.getResource("enms.wsdl");