felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clement Escoffier <clement.escoff...@gmail.com>
Subject Re: IPojo method annotated with @Updated called twice
Date Mon, 01 Sep 2014 05:21:00 GMT
Hi,

It seems that the bug is back. I’ve re-opened the issue.

Thanks,

Clement

On 31 août 2014 at 12:24:49, Milen Dyankov (milendyankov@gmail.com) wrote:

Hi everyone,  

I'm aware this issue has been reported (FELIX-4172) and apparently fixed in  
ipojo-runtime-1.11.0. However the same (or very similar one) happens in  
Karaf 3.0.1 with IPojo 1.12.0.  

Here is my very simple test class:  

@Component(  
immediate = true,  
managedservice = "update.test")  
@Provides  
@Instantiate  
public class UpdateTest implements TestInterface {  

@Override  
public void test() {  
}  

@Updated  
public void update(Dictionary dictionary) {  
Thread t = Thread.currentThread();  
System.out.println();  
System.out.println("PROPERTIES UPDATED \n" +  
" in thread: [" + t.getName() + "] \n" +  
" values: " + dictionary);  
}  

}  

In Karaf I have a simple "update.test.cfg" file containing "  
test.property=test.value"!  

When I deploy my bundle in Karaf this is what I get:  

PROPERTIES UPDATED  
in thread: [[iPOJO] pool-1-thread-1]  
values: {test.property=test.value, component=test.UpdateTest,  
felix.fileinstall.filename=file:/data/projects/tmp/karaf/apache-karaf-3.0.1/etc/update.test.cfg}
 
PROPERTIES UPDATED  
in thread: [CM Configuration Updater (ManagedService Update:  
pid=[update.test])]  
values: {test.property=test.value, component=test.UpdateTest,  
felix.fileinstall.filename=file:/data/projects/tmp/karaf/apache-karaf-3.0.1/etc/update.test.cfg}
 


Is this a bug?  

--  
http://about.me/milen  

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message