Thank you for your answer
I have 3 cxfse:endpoint that needs to access a BC provider exposing
"outsider:farAwayService".

I already have some code:
- dans les classes des endpoint 1,2,3:  (E1) (E2) (E3), j'ai une classe:
private HelpBroker helpBroker = new HelpBroker()
- in this class HelpBroker (I created a singleton class), I will the proxy
private MyProxy myProxy;
and I want this interface MyProxy "to call" the BC provider exposed service.

How can I do this in my spring file so it can be used by all my three CXF
endpoints?

<cxfse:endpoint>
   <cxfse:pojo>
     <bean class="endpoint1">
     </bean>
   </cxfse:pojo>
</cxfse:endpoint>

<bean class="HelpBroker " singleton="true">
       <property name="myProxy">
          <cxfse:proxy service="outsider:farAwayService" context="#context"
type="MyProxy " />
       </property>
</bean>

I created a singleton so all endpoint created for the class HelpBroker will
be the object I create with spring  and whose myproxy property is
configured.
Then I am not sure that if don't have any namespace in the <bean> property,
it will be managed by cxf component...
By the way how could I find which class reads the xbean.xml file? 





-- 
View this message in context: 
http://www.nabble.com/CXF-proxy-tp17642918p17650796.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to