Hi Rigas,
I changed your maven-bundle-plugin configuration to
<configuration>
<instructions>
<Bundle-Blueprint>OSGI-INF/blueprint/blueprint.xml</Bundle-Blueprint>
<Import-Library>
org.springframework.spring
</Import-Library>
<Import-Package>
!org.osgi.service.blueprint,
org.aspectj.lang,
*
</Import-Package>
<Export-Package>org.aaaa</Export-Package>
</instructions>
</configuration>
and simplyfied the consumer
@PostConstruct
protected void start() {
LOG.info(this.getClass().getSimpleName() + ".start()");
service.sayHello("Rigas");
}
and your Aspect is called:
INFO region-dm-1 org.aaaa.impl.HelloWorldServiceConsumerImpl HelloWorldServiceConsumerImpl.start()
ERROR region-dm-1 System.err [KernelBundleClassLoader@492396a8] debug weaving 'org.aaaa.impl.Aspects'
INFO region-dm-1 org.aaaa.impl.Aspects sayHello called
INFO region-dm-1 org.aaaa.impl.HelloWorldServiceImpl sayHello: Rigas
Hope this helps,
florian