dev@jax-ws.java.net

Re: SAAJ AttachmentPartImpl reference

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Thu, 28 Sep 2006 14:53:44 -0700

Vivek Pandey wrote:

> com.sun.xml.ws.message.DataHandlerAttachment we have this code:
>
> ------
> // TODO fix the hack
> // So that SAAJ registers DCHs for MIME types
> static {
> new com.sun.xml.messaging.saaj.soap.AttachmentPartImpl();
> }
> ------
>
this is added so that DCHs are registered for MIME types( in
AttachmentPartImpl's static block.). There must be some other way to do
this without relying on SAAJ's internal class.

> I thought we dont need to expose such a thing for xwss purposes.
> Anyone knows why this code was added here?

Its not added for xwss purpose. I don't remember the exact stack trace,
but when DataHandler is converted to Image or something, there was some
exception.

Jitu

>
> -vivek.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>