cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivanhoe Abrahams (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DOSGI-94) Enhancement to deal with registered services that might have been proxied (eg. CGLIB proxies).
Date Thu, 21 Apr 2011 07:11:05 GMT
Enhancement to deal with registered services that might have been proxied (eg. CGLIB proxies).
----------------------------------------------------------------------------------------------

                 Key: DOSGI-94
                 URL: https://issues.apache.org/jira/browse/DOSGI-94
             Project: CXF Distributed OSGi
          Issue Type: Improvement
          Components: DSW
    Affects Versions: 1.2, 1.3
         Environment: Felix 3.2.0 + Apache Aries blueprint + CXF Dosgi
            Reporter: Ivanhoe Abrahams
            Priority: Minor
             Fix For: 1.3


In my local environment I use Apache Aries and now also added CXF DOSGI.
I noticed that the greeter example works fine but my own services, which are registered by
aries blueprint 
did not get exported by CXF DOSGI.

I think blueprint enhances the original services by weaving in a new class which has as superclass
the original, which then causes problems for cxf-dosgi.

The class ClassUtils in dsw is where the enhancement can take place. This class checks the
provided service class to see if it implements the registered interface, but if this service
class itself is a proxy to the real service class the it always returns null.

The fix for this is simply to recurse up all superclasses and test each superclass to see
if it implements said interface. 



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message