tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom Park <>
Subject how to reload a getResourceAsStream() object
Date Wed, 08 Aug 2001 21:52:12 GMT

I have a requirement where i need to make multiple passes over a resource
obtained via ServletContext.getResourceAsStream().

My problem is that as follows:

	InputStream is = sc.getResourceAsStream("/my_resource_name");

	.... do 1st processing pass


	is = sc.getResourceAsStream("/my_resource_name");

	... do second processing pass...

The problem is that, as far as the StandardClassLoader is concerned, the
cached copy of the input stream is still good (and it isn't I just closed
and I get the original (now bad) input stream returned.

Is there anyway to force tomcat to reload the resource object (without
unloading the context).
as, right now I'm reading the whole resource into a byte array and using
[my] cached copy
for processing.


-----Original Message-----
From: []
Sent: Wednesday, August 08, 2001 2:13 PM
To: tomcat dev
Subject: Re: [PROPOSAL] Deprecation of committers...

Can you send a list with the commiters that will become deprecated ?

Does this include 3.x commiters as well ? ( from the proposal it seems you
are talking about 4.0 commiters ).


On Wed, 8 Aug 2001, Pier P. Fumagalli wrote:

> I recently checked the list of committers for Tomcat 4.0 and MANY of them
> are inactive... Our PMC charter mentions:
>   At times, Committers may go inactive for a variety of reasons. A
>   that has been inactive for 6 months or more may lose their status as a
>   Committer. Getting access back is as simple as re-requesting it on the
>   projects developer mailing list.
> Can we start the process for "deprecating" them?
>     Pier

View raw message