Hi all,

In a JBI service assembly, based on the cxf-wsdl-first example, I have been
able to successfully use the <cxfse:proxy .... /> tag to inject a CXF proxy
into my cxfse service unit and call to another JBI endpoint with this proxy.

Now I am trying to do the exact same thing in an OSGI - packaged cxfse
service unit (based on the cxf-wsdl-first-osgi-package example) and am
getting an exception:  

"org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'context' is defined" 

when I deploy and it tries to inject the proxy.  Here is the relevant
excerpt from my beans.xml:

   <cxfse:endpoint>
        <cxfse:pojo>
          <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl"
>
            <property name="es">
              <cxfse:proxy service="bp:HelloPortTypeService"
context="#context" type="bpeltest.wsdl.HelloPortType"/>
            </property>
          </bean>
        </cxfse:pojo>
    </cxfse:endpoint>

What am I doing wrong?  How can I get the proxy injected with OSGI
packaging?  Is it even possible?

Thanks,
JB

-- 
View this message in context: 
http://old.nabble.com/cxfse-proxy-injection-in-osgi-packaged-cxfse-service-unit-tp27869007p27869007.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to