On Fri July 17 2009 3:45:46 am Kid_79 wrote:
> I'm using CXF 2.2.2 and jaxb 2.1!

Well, if schema validation is on, it's kind of expected.   Bug is logged:
https://jaxb.dev.java.net/issues/show_bug.cgi?id=588

If schema validation isn't turned on, any way to create a test case and attach 
to a JIRA?

Dan




> Kid
>
> dkulp wrote:
> > On Thu July 16 2009 6:52:55 am Kid_79 wrote:
> >> However, for attachments greater 64k, I can not retrieve the content,
> >> the file has a size 0k.
> >> What is the problem?
> >>
> >> Does CXF delete temporary files automatically?
> >
> > What version of CXF and do you have Schema validation turned on?   There
> > is a
> > bug in JAXB that is consuming the streams during schema validation.  When
> > the
> > stream is fully consumed, the file is deleted.
> >
> > Dan
> >
> >> Kid_79 wrote:
> >> > Ok,
> >> > thanks for your answer.
> >> > Where can I configure threshold and temporary file path?
> >> >
> >> > dkulp wrote:
> >> >> On Wed July 15 2009 12:59:32 pm Kid_79 wrote:
> >> >>> Does cxf save attachments in temporary files?
> >> >>
> >> >> It depends.  :-)
> >> >>
> >> >> In SOME cases, it doesn't need to save them anywhere.  For example,
> >> >> if there
> >> >> is just a single attachment that is passed in as a param, we can
> >> >> directly stream it off the wire.   No saving needed.
> >> >>
> >> >> If the attachments are small (default is 64K, but controllable), we
> >>
> >> also
> >>
> >> >> just
> >> >> keep them in memory.   However, if they exceed that threshold, then
> >>
> >> yes,
> >>
> >> >> we
> >> >> dump them into temp files.
> >> >>
> >> >> Does that answer the question?
> >> >> --
> >> >> Daniel Kulp
> >> >> [email protected]
> >> >> http://www.dankulp.com/blog
> >
> > --
> > Daniel Kulp
> > [email protected]
> > http://www.dankulp.com/blog

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to