Trying to put AOSGI to work on the framework [message #105077] |
Tue, 12 February 2008 10:53  |
Eclipse User |
|
|
|
Originally posted by: sd-silva.criticalsoftware.com
Hi,
I'm trying get AOSGi to work outside eclipse, just
the equinox framework with the necessary bundles, but I'm not getting good
results.
My major question is, which bundles should be on config.ini to be able to
run successfully.
Cheers,
|
|
|
Re: Trying to put AOSGI to work on the framework [message #105322 is a reply to message #105077] |
Sun, 17 February 2008 08:05   |
Eclipse User |
|
|
|
Hi!
> I'm trying get AOSGi to work outside eclipse, just
> the equinox framework with the necessary bundles, but I'm not getting
> good results.
>
> My major question is, which bundles should be on config.ini to be able
> to run successfully.
The config.ini could be something like this:
osgi.bundles=org.eclipse.equinox.common@2\:start,org.eclipse.update.configurator@3\:start,org.eclipse.core.runtime@start,
org.aspectj.osgi.service.weaving@:start,
org.aspectj.osgi.service.caching.j9@:start
(where the last one only makes sense if you are using an IBM SDK with
shared classes feature enabled).
(this is all in one line, my mail client breaks this into multiple ones)
Don't forget to set the framework extension property.
For example:
osgi.framework.extensions=org.aspectj.osgi
And the loadtime weaving configuration to those paths that you are using
for the aop.xml files in your aspect bundles:
For example:
org.aspectj.weaver.loadtime.configuration=META-INF/aop.xml;o rg/aspectj/aop.xml;META-INF/aop-ajc.xml
If you have further questions, please feel free to ask. I remember a
similar question on the mailing list some time ago. If I find the link,
I will post it here.
HTH,
-Martin
|
|
|
|
|
|
|
Re: Trying to put AOSGI to work on the framework [message #105434 is a reply to message #105363] |
Thu, 21 February 2008 15:08  |
Eclipse User |
|
|
|
Hi!
> It's possible to have a bundle with all aspectj pointcuts defined and
> that will catch any other call done in another bundle. I just can do
> that inside each bundle, not in all environment.
I am not sure if I understand your question correctly but it is possible
to define an aspect inside a separate bundle and let this aspect be
woven into all other bundles with Equinox Aspects. This means your
aspect bundle can define a pointcut that affects all other bundles
without touching those other bundles at all.
Just implement your aspect inside a bundle, define the aop.xml file and
"Eclipse-SupplementBundle: *" in the manifest. Thats it.
Hope this answers your question,
Martin
>
> Cheers,
>
>
> Mr. Smith wrote:
>> Just to let you know, i've managed a solution and i get AOSGI to work :)
>>
>> Thanks for your help :)
>>
|
|
|
Powered by
FUDForum. Page generated in 1.13886 seconds