I forgot to say that the cause for the DeadlineExceededException was
log4j, which is unable to log very large strings (xml).
Nevertheless is JAXB in my opinion not the first choice when parsing
large xml files, because of the worse performance.

On 28 Dez., 23:06, androidDeveloper <stepmas...@googlemail.com> wrote:
> I switched to javax.xml.parsers.SAXParser. The problem is now solved
> and its obviously faster.
> Performance JAXB (very large XML) ~ 4sec
> SAXParser with specific optimizations ~ 0,35secs
>
> Thanks for your help!
>
> On 26 Dez., 21:03, dreamer <venugopal.vasire...@gmail.com> wrote:
>
> > If the requirement is pure parsing and not the Marshalling and u-
> > Marshalling from xml to objects, you may be better
> > off using Stax or SAX parsers.
>
> > On Dec 26, 4:29 am, Didier Durand <durand.did...@gmail.com> wrote:
>
> > > Hi,
>
> > > I don't need xsd and don't parse very large xml but the code is simple
> > > to implement: so, unless you have a huge code base already working on
> > > JAXB, you can probably write directly with the classes provided by GAE
>
> > > It's hard for me to compare with jaxb that I didn't use that much.
>
> > > The issue I see with JAXB and other external jars is that you need to
> > > check their requirements againt the JRE list that I provided im my
> > > previous post: you are never sure that the next version will require a
> > > class unsupported by GAE.
>
> > > regards
>
> > > didier
>
> > > On Dec 26, 11:44 am, androidDeveloper <stepmas...@googlemail.com>
> > > wrote:
>
> > > > Hi,
>
> > > > This approach would be my next choice. but implementing and testing
> > > > this should be more complex as with JAXB?
>
> > > > On 26 Dez., 08:54, Didier Durand <durand.did...@gmail.com> wrote:
>
> > > > > Hi,
>
> > > > > I use the xml parsing classes that are natively part of GAE JDK
> > > > > itself : javax.xml.parsers.DocumentBuilder,
> > > > > javax.xml.parsers.DocumentBuilderFactory, org.w3c.dom.Document, etc.
>
> > > > > See bottom 
> > > > > ofhttp://code.google.com/appengine/docs/java/jrewhitelist.html
>
> > > > > Aren't those enough for what you want to achieve ?
>
> > > > > regards
>
> > > > > didier
>
> > > > > On Dec 23, 6:54 pm, crllvnc <crll...@gmail.com> wrote:
>
> > > > > > I've been using JAXB for xml file unmarshalling in an upload 
> > > > > > servlet.
> > > > > > As far as I remember, the only size limit I have faced is related to
> > > > > > the 30s timeout.
>
> > > > > > Here are my imports :
> > > > > > import javax.xml.bind.JAXBContext;
> > > > > > import javax.xml.bind.JAXBElement;
> > > > > > import javax.xml.bind.JAXBException;
> > > > > > import javax.xml.bind.UnmarshalException;
> > > > > > import javax.xml.bind.Unmarshaller;
>
> > > > > > Maybe switching from JAXB2 to JAXB would solve (part of) your
> > > > > > problems.
> > > > > > Moreover, JAXB does not require any jar.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to