Bart Molenkamp wrote:
Hi all,

I've noticed that it's not possible to call the getInputStream() on
instances of SitemapSource classes can only be called once. Calling it a
second time throws an exception.


Is that correct behaviour, or is that a bug?

No. See org.apache.excalibur.source.Source.refresh().


In my use-case, I use pipelines to generate the body for email messages.
I resolve the source, and create a new
org.apache.cocoon.mail.datasource.SourceDataSource instance and pass the
source to it. When sending, it looks like the JavaMail api calls the
getInputStream() more than once.

It's bug in SourceDataSource then. It should make sure refresh() is called as needed.


Vadim

Reply via email to