Hi,
I have nodirect experience but there is a good article
http://dywicki.pl/2011/11/running-aspects-under-osgi-4-2-with-karaf/
I hope you can help
Regards
--Filippo


2014/1/6 Cristiano Costantini <[email protected]>

> Hi All,
> I'm testing using AspectJ in ServiceMix (I need it in a Spring Security's
> "protect-pointcut" expression that put security rules on method of a bean).
>
> It works, but when I add a pointcut expression, I need to add to my bundle
> a lot more package imports to make it work...
>
> To understand what I mean, take a look at the following commit:
>
> https://github.com/cristcost/springsec/commit/073887d2487ba11f0eebaa011f79d3a9f2c95edd
> (the commit add an aspectj pointcut expression and add the Import-Package
> instructions required to make it work).
>
> I don't like the final result: managing the Import-Package is too much
> complex with aspectj enabled...
>
> Anyone have experience on using it in ServiceMix and can give any
> suggestion on how it is best to handle OSGi's import-pacakge when using
> AspectJ?
> Can you point me to good examples of ServiceMix or Karaf + AspectJ where I
> can get some inspiration?
>
> Thank you very much,
> (and happy new year to all of you!)
>
> Cristiano
>

Reply via email to