geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Masayoshi Yamashita <ymstm...@gmail.com>
Subject Re: JarURLConnection doesn't work "useCaches" property
Date Tue, 04 Aug 2009 14:04:02 GMT
Hello Jack,

I want to achieve handling JarFile and JarEntry in some programs.
Each program gets JarFile with false "useCaches", and calls
JarFile#getInputStream and JarFile#close methods.
However, when JarFile instances are same, first program closes tha
JarFile, so second program can't handle the JarFile.
Therefore I hope to get different instances.

Also, it is described in the javadoc of "useCaches" field as follows.
"If false, the protocol must always try to get a fresh copy of the object."

I think that getJarFile method of
"org.apache.geronimo.kernel.classloader.JarFileUrlConnection" must
return a different instance, when "useCaches" is false.

I'm using Geronimo in Windows XP.

Best regards,

--------------------
Masayoshi Yamashita

Mime
View raw message