Sergey Shepelevich wrote:
>Hello all,
>
>How can I enable mtom at Sun Java Application System Server ?
>I'm using NetBeans 5.5 for creation and deploying webservices.
>
>It is said in jax ws docs that I need to enable it at sun-jaxws.xml,
>but I saw simewhere that it works for Tomcat & Weblogic, but not for
>Sun Java Server since it has auto descriptor deployment.
>
>
sun-jaxws.xml is used for primarily as servlet application deployment.
Sun Java Server also supports it.
You could also do the J2EE webservice or jsr-109 deployment. Based on
the needs of the application you could create a webservices.xml
descriptor or none.
>Can someone advise of how to do that ? Thanks in advance.
>
>
Oneway to do is to add @BindingType annotation with mtom binding id on
the endpoint.
For e.g.:
@WebService(...)
@BindingType(value=SOAPBinding.SOAP11HTTP_MTOM_BINDING)
public class HelloImpl {
Other option is to specify it in webservices.xml deployment descriptor.
Jitu