|ClassLoader AspectJ [message #507287]
||Tue, 12 January 2010 18:20
Registered: July 2009
Im new to AspectJ and its use in Equinox environments. The issue I'm
working on is this:
I have a 3 bundles: one with business objects, one with DAO objects and
one (lets call it facade) that uses classes from the first two bundles
and exposes them with some OSGI services so other bundles (like UI) can
use them. Finally I also have Spring JARS in another bundle.
Im using Spring IOC to create the DAO and business objects, and created
service delegates that, in theory, had some transaction defined in the
XML used by spring.
When Declarative Spring Transactions are used they call AspectJ to
create a proxy for the service delegate. The problem comes when it tries
to load the class for this service delegate since it can't find it due
to classloading restrictions.
I have tried to use aop.xml from this tutorial:
but its not working.
Is there any way to tell the AspectJ bundle that it should load class
definitions from my facade bundle?
I have done that with Spring BeanFactory and I thought that could
resolve the AspectJ issue, but it didnt :S.
Powered by FUDForum
. Page generated in 0.10787 seconds