On Tue, 2008-09-16 at 22:46 -0500, Thilina Gunarathne wrote:
> Too bad this was not there (or was it there and we did not come across) when
> we started writing the Axis2 attachments stuff. We had to write our own Mime
> parsers and serializers to make sure Axis2 deffered parse the MIME
> messages.
> 
> Axis2 does not depend on Java Mail a lot due to it's lack of support for
> deffered/streaming parsing of MIME.  Personally I find JavaMail to be sub
> optimal, but Activation was kind of OK for us.. IIRC we didn't had much
> trouble with activation and it supported whatever the use cases we wanted to
> support in Axis2..
> 
> Let's implement and see the advantages of it over the existing impl..BTW in
> the home page of the mime4j, I found a reference to SAX...Does this work as
> Sax or StAX?
> 

Thilina,

Mime4j parser works similarly to SAX. It is an event based API. One can
provide a custom handler implementing a particular custom processing
logic in response to appearance of a certain MIME element in the data
stream, such as a MIME header or a content part.

Oleg

> thanks,
> Thilina
> 
> 
> > Oleg Kalnichevski wrote:
> >
> >> Folks,
> >>
> >> Would there be any interest in a SwA implementation based on Apache
> >> mime4j [1]? Mime4j can handle very complex MIME messages, is reasonably
> >> fast, and, most importantly, can stream complex MIME messages in and out
> >> with a predictable memory footprint (using just a small internal buffer
> >> of a constant length)
> >> I _personally_ find Java Activation API pretty suboptimal and would like
> >> Axiom to provide an alternative API based on a fully streamable model.
> >> Let me know what you think.
> >>
> >> Oleg
> >>
> >> [1] http://james.apache.org/mime4j/index.html
> >>
> >>
> >>
> > --
> > Sanjiva Weerawarana, Ph.D.
> > Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> > Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> > Member; Apache Software Foundation; http://www.apache.org/
> > Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
> >
> > Blog: http://sanjiva.weerawarana.org/
> >
> 
> 
> 

Reply via email to