You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jurgen Schlierf <sc...@ligas.de> on 2005/02/09 14:39:55 UTC

commons-configuration 1.1: FileChangedReloadingStrategy doesn't work

Hello,

I'm using commons configuration 1.1 RC1. The FileChangedReloadingStrategy doesn't work. After the delay time of 5000 milliseconds
the properties got still the old values. Isn't it already implemented yet?

 

 

 

 


Re: commons-configuration 1.1: FileChangedReloadingStrategy doesn't work

Posted by Jürgen Schlierf <sc...@ligas.de>.
Hi Emmanuel,
I'm working with Windows XP. Here's an example:

String xmlFileName = "
C:\projects\tilestest\build\webapp\WEB-INF\plugin-config.xml";
XMLConfiguration  config = new XMLConfiguration(xmlFileName);
config.setReloadingStrategy(new FileChangedReloadingStrategy());

The instance of XMLConfiguration ist cached. After modifying the xml file
with Ultraedit, nothing happened. Do you have simple example?

Jürgen


> Hi Jurgen, yes this feature is implemented. Could you give us more
> details about your environment please ? How the configuration is
> modified ? How do you load it ? What is your platform ?
> 
> Emmanuel Bourg
> 
> 
> Jurgen Schlierf wrote:
>> Hello,
>>
>> I'm using commons configuration 1.1 RC1. The
>> FileChangedReloadingStrategy doesn't work. After the delay time of 5000
>> milliseconds
>> the properties got still the old values. Isn't it already implemented
>> yet?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: commons-configuration 1.1: FileChangedReloadingStrategy doesn't work

Posted by Emmanuel Bourg <eb...@apache.org>.
Hi Jurgen, yes this feature is implemented. Could you give us more 
details about your environment please ? How the configuration is 
modified ? How do you load it ? What is your platform ?

Emmanuel Bourg


Jurgen Schlierf wrote:
> Hello,
> 
> I'm using commons configuration 1.1 RC1. The FileChangedReloadingStrategy doesn't work. After the delay time of 5000 milliseconds
> the properties got still the old values. Isn't it already implemented yet?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [io] Should I buffered streams when using commons io?

Posted by Stephen Colebourne <sc...@btopenworld.com>.
The javadoc tells you the answer

" The copy methods use an internal buffer when copying. It is therefore 
advisable not to deliberately wrap the stream arguments to the copy methods 
in Buffered* streams "

Stephen

----- Original Message ----- 
From: "Carfield Yim" <ca...@gmail.com>
To: "Jakarta Commons Users List" <co...@jakarta.apache.org>
Sent: Wednesday, February 09, 2005 2:16 PM
Subject: Should I buffered streams when using commons io?


> Should I buffered streams when using commons io myself, like
>
> CopyUtils.copy(new BufferedInputStream(new FileInputStream(file)), new
> BufferedOutputStream(res.getOutputStream()));
>
> instead of
> CopyUtils.copy(new FileInputStream(file)), res.getOutputStream());
>
> Or CopyUtil, IOUtil proper probably inside the API?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Should I buffered streams when using commons io?

Posted by Carfield Yim <ca...@gmail.com>.
Should I buffered streams when using commons io myself, like 

CopyUtils.copy(new BufferedInputStream(new FileInputStream(file)), new
BufferedOutputStream(res.getOutputStream()));

instead of
	CopyUtils.copy(new FileInputStream(file)), res.getOutputStream());

Or CopyUtil, IOUtil proper probably inside the API?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org