Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3530

Add some hints to the code generated by cxf using wsconsume to tune generated code before use

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Trivial
    • None
    • jbossws-cxf-4.0.2
    • jbossws-cxf

    Description

      The generated code when using wsconsume is not really meant for use in production environment with the statically initialized wsdlLocation and the error that will be logged when this the Service object is first initialized.

      WSService.java
      static {
              URL url = null;
              try {
                  url = new URL("file:/directory/to/wsdl/WSTestEJB/ejbModule/META-INF/WSProvider.wsdl");
              } catch (MalformedURLException e) {
                  java.util.logging.Logger.getLogger(WSProviderService.class.getName())
                      .log(java.util.logging.Level.INFO, 
                           "Can not initialize the default wsdl from {0}", "file:/directory/to/wsdl/WSTestEJB/ejbModule/META-INF/WSProvider.wsdl");
              }
              WSDL_LOCATION = url;
          }
      

      This is a request to amend the log level to "DEBUG" and/or have wsconsume create a hint of sorts to tune this class before use in a container.

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            rhn-support-mus Mustafa Musaji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: