[jbossws-issues] [JBoss JIRA] Created: (JBWS-2534) sun-jaxws.xml generation doesn't respect @MTOM

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Fri Feb 20 08:57:44 EST 2009


sun-jaxws.xml generation doesn't respect @MTOM
----------------------------------------------

                 Key: JBWS-2534
                 URL: https://jira.jboss.org/jira/browse/JBWS-2534
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: jbossws-metro
            Reporter: Alessio Soldano


>From SunJaxwsDeploymentAspect:

Class beanClass = endpoint.getTargetBeanClass();
BindingType bindingType = (BindingType)beanClass.getAnnotation(BindingType.class);
          
if (bindingType != null && bindingType.value().length() > 0)
{
      String binding = bindingType.value();
      ddEndpoint.setBinding(binding);
      ddEndpoint.setEnableMTOM(isMtomEnabled(binding));
}

...

private static boolean isMtomEnabled(String binding)
   {
      return binding.equals(SOAPBinding.SOAP11HTTP_MTOM_BINDING) || binding.equals(SOAPBinding.SOAP12HTTP_MTOM_BINDING);
   }


The @MTOM annotation should be considered too when enabling/disabling MTOM.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list