|
I'd like to have container-level LTW enabled for my bundles. Virgo has
this out of the box using Equinox Aspects and the Equinox aspectj hook. Karaf uses Felix by default so I was trying to get this working on Felix, but have not found any solution. So, two questions: 1) Is there a working AspectJ LTW solution for Felix? 2) Does anyone have any experience with Equinox Aspects on top of Karaf with Equinox? Regards, Raman Gupta Principal VIVO Systems |
|
Hi Raman,
can't really answer your questions but give some hints :) 1) it's not mandatory to use felix you easily can switch over to equinox 2) should be as simples / stressfull with running on Virgo since
Karaf dosn't do anything special to prevent this :) So for using equinox just add the following line to your custsom.properties karaf.framework=equinox
now Karaf runs with equinox. For the aspects stuff you still need to provide the needed bundles to Karaf but after that it should run. Regards, Achim 2011/11/30 Raman Gupta <[hidden email]> I'd like to have container-level LTW enabled for my bundles. Virgo has Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> |
|
Hey Raman,
I wrote complete instruction how to enable equinox waving hook working under Karaf. You may find it on my blog: Also I work on generic weaving hook compatible with OSGi 4.3 (I guess AspectJ team works on it too) to enable load time weaving on Felix too. It won't work in Karaf 2.2.x but it will work under 3.0 (current trunk). Best regards, Lukasz
Hi Raman, |
|
Thank you, I came upon your blog post a couple of days ago while
researching/googling this, and already had it on my queue to read in more depth :) The information on OSGi 4.3 / Karaf 3 is also great to know. Thanks, Raman On 11/30/2011 06:34 AM, Łukasz Dywicki wrote: > Hey Raman, > I wrote complete instruction how to enable equinox waving hook working > under Karaf. You may find it on my blog: > http://dywicki.pl/2011/11/running-aspects-under-osgi-4-2-with-karaf/ > > Also I work on generic weaving hook compatible with OSGi 4.3 (I guess > AspectJ team works on it too) to enable load time weaving on Felix > too. It won't work in Karaf 2.2.x but it will work under 3.0 (current > trunk). > > Best regards, > Lukasz > > >> Hi Raman, >> >> can't really answer your questions but give some hints :) >> >> 1) it's not mandatory to use felix you easily can switch over to equinox >> 2) should be as simples / stressfull with running on Virgo since >> Karaf dosn't do anything special to prevent this :) >> >> So for using equinox just add the following line to your >> custsom.properties >> >> karaf.framework=equinox >> >> now Karaf runs with equinox. For the aspects stuff you still need to >> provide the needed bundles >> to Karaf but after that it should run. >> >> Regards, Achim >> >> 2011/11/30 Raman Gupta <[hidden email] >> <mailto:[hidden email]>> >> >> I'd like to have container-level LTW enabled for my bundles. >> Virgo has >> this out of the box using Equinox Aspects and the Equinox >> aspectj hook. >> >> Karaf uses Felix by default so I was trying to get this working on >> Felix, but have not found any solution. So, two questions: >> >> 1) Is there a working AspectJ LTW solution for Felix? >> >> 2) Does anyone have any experience with Equinox Aspects on top of >> Karaf with Equinox? >> >> Regards, >> Raman Gupta >> Principal >> VIVO Systems >> >> >> >> >> -- >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> >> Committer & Project Lead >> blog <http://notizblog.nierbeck.de/> > |
|
In reply to this post by Łukasz Dywicki
Hi Lukasz,
A nice instruction about waving under karaf! Is it also possible with the spring-aop feature? Are there examples about it? This is default available in Karaf. Regards, SvS |
|
In reply to this post by Łukasz Dywicki
Hi Lukasz
Is the weaving hook already implemented in Karaf trunk? Do you know any implementations LTW based on AspectJ compatible with the OSGi 4.3 Waeaving Hook? Best regards Krzysztof |
| Powered by Nabble | Edit this page |
