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. Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
