cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <>
Subject Re: Cached AbstractReader
Date Thu, 20 Dec 2007 12:47:24 GMT
Jon Evans wrote:
> I've implemented a class which extends AbstractReader. It uses some
> SOAP calls to pull some binary gif image data from a remote system.
> My problem is that the resource is not cached if I throw a
> MissingResourceException.
> At the moment, products with no icons cause the remote system to be
> hit every time, and the SOAP calls are quite slow.
> The only thing I can think of is to stream the default image data out
> of my reader if the product has no image, by directly opening the
> default image file from disk inside the reader.

Yes, I think this is the best course of action.

You might want to make the path to the default image a configuration
parameter, of course, so that you won't have to recompile your reader
when the path changes, or if you want different default images for
different products.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message