As far as I can tell, this is working as it should. By default dm Server captures System.out and System.err and routes it to the log files. To make things a bit easier I changed the configuration in com.springsource.osgi.medic.properties to disable this so that the output would be visible in the console:
Code:
dump.root.directory=serviceability/dump
log.wrapSysOut=false
log.wrapSysErr=false
log.dump.level=DEBUG
log.dump.bufferSize=10000
log.dump.pattern=[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-28.28thread %-64.64logger{64} %X{medic.eventCode} %msg %ex%n
I also modified your bundles slightly (to use Import-Package, rather than Import-Bundle for their dependency upon Aspect J) and deployed them. This resulted in the following output:
Code:
[2009-11-16 16:55:16.121] deployer-recovery <DE0059I> Starting bundle 'ServiceCounterRef' version '1.0.0'.
com.xyz.myservice.MyServiceImpl
Class Name com.xyz.service.IServiceMethod sayHello
Hello
com.xyz.myservice.MyServiceImpl
Class Name com.xyz.service.IServiceMethod sayHello
Hello
com.xyz.myservice.MyServiceImpl
Class Name com.xyz.service.IServiceMethod sayHello
Hello
com.xyz.myservice.MyServiceImpl
Class Name com.xyz.service.IServiceMethod sayHello
Hello
com.xyz.myservice.MyServiceImpl
Class Name com.xyz.service.IServiceMethod sayHello
Hello
[2009-11-16 16:55:16.267] start-signalling-1 <DE0060I> Started bundle 'ServiceCounterRef' version '1.0.0'.