Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2650

ConnectionFactory.newInstance() does not provide default impl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.1.Final
    • None
    • JAXR
    • None

      The current impl

         public static ConnectionFactory newInstance() throws JAXRException
         {
            String factoryName = null;
            ConnectionFactory factory = null;
            try
            {
               String defaultName = null;
               factoryName = System.getProperty(SYS_PROP_NAME, defaultName);
               ClassLoader loader = Thread.currentThread().getContextClassLoader();
               Class factoryClass = loader.loadClass(factoryName);
               factory = (ConnectionFactory) factoryClass.newInstance();
            }
            catch(Throwable e)
            {
               throw new JAXRException("Failed to create instance of: "+factoryName, e);
            }
            return factory;
         }
      

      does not provide a default impl as documented.

              kstam@redhat.com Kurt Stam (Inactive)
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: