On 10/13/07, Jukka Zitting <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 10/13/07, Robert Burrell Donkin <[EMAIL PROTECTED]> wrote:
> > On 10/12/07, Keith R. Bennett <[EMAIL PROTECTED]> wrote:
> > > Do you all have any opinions about which class loader to use to load the
> > > tika-config.xml file?  I used the one I was more familiar with, but Sami
> > > brought up a question about it (see below).  Someone else I spoke with
> > > suggested using both classloaders (try #1, if it fails, try #2).
> >
> > trying the context classloader and then falling back to the class
> > classloader is the best approach
>
> IMHO this should be a client concern. Tika itself should only take an
> InputStream and not care where the configuration stream is coming
> from. I'm OK with the current utility methods that take a filename, a
> File, or a URL instead, but playing with classloaders is a sure sign
> of trouble.

+1

- robert

Reply via email to