It works fine now !
The bean now can call my cxf-se as a proxy.
This dependency was missing as well :

<dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-bindings-jbi</artifactId>
                        <version>2.0.9</version>
                </dependency>


here is the java code creating the proxy :

String namespace = "http://filerepository.esb.transfolio.parkeon.com";;
        String portName = "IFileRepository";
        String serviceName = "FileRepositoryService";
        
        //QName port = new QName(namespace, portName);  
        QName service = new QName(namespace, serviceName);
        JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
        cf.setServiceName(service);
        cf.setServiceClass(IFileRepository.class);
        cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
       
cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
        Bus bus = BusFactory.getDefaultBus();
        JBITransportFactory jbiTransportFactory = (JBITransportFactory) bus
          .getExtension(ConduitInitiatorManager.class)
          .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
        jbiTransportFactory.setDeliveryChannel(m_channel);

        m_fileRepository = (IFileRepository) cf.create(); 



Thanks a lot!

But I still don't understand why a cxf-se proxy can't be build an easier
way?
It is a feature that will exist into SMX 4?
I mean define quickly a proxy only into the xbean.xml of the bean-su like
this :


<bean:endpoint service="parkeon:myBean"
                endpoint="endpoint">
                <bean:bean>
                        <bean id="myBean" class="com.myBean>
                           <property name="myProxy">
<cxfse:proxy service="test:myService" context="#context"
type="com.IMyService" />
                        </bean>
                </bean:bean>
        </bean:endpoint>



Jean-Baptiste Onofré wrote:
> 
> Yes, it's the file that I was thinking (the file name in my previous 
> mail is for CXF 2.2.x).
> 
> Keep us posted about the result.
> 
> Regards
> JB
> 
> jcamus wrote:
>> hi,
>> I found what is missing this dependency must be added (found that in the
>> pom
>> of the project servicemix-se).
>> <dependency>
>>                      <groupId>org.apache.cxf</groupId>
>>                  <artifactId>cxf-rt-transports-jbi</artifactId>
>>                  <version>2.0.9</version>
>>              </dependency>
>> 
>> Hope now it works. I let you know.
>> 
>> 
>> 
>> 
>> Jean-Baptiste Onofré wrote:
>>> You have right, let me check.
>>>
>>> jcamus wrote:
>>>> Ok, but where I can find this jar? I don't understand why it's not into
>>>> cxf-se libs?
>>>>
>>>>
>>>>
>>>> Jean-Baptiste Onofré wrote:
>>>>> Hi,
>>>>>
>>>>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>>>>> corresponding extension XML.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> jcamus wrote:
>>>>>> Here is my pom.xml of servicemix bean :
>>>>>>
>>>>>> <dependencies>
>>>>>>  
>>>>>>          <dependency>
>>>>>>                  <groupId>org.apache.servicemix</groupId>
>>>>>>                  <artifactId>servicemix-bean</artifactId>
>>>>>>                  <version>${servicemix-version}</version>
>>>>>>          </dependency>
>>>>>>          
>>>>>>          <dependency>
>>>>>>                  <groupId>org.apache.servicemix</groupId>
>>>>>>                  <artifactId>servicemix-cxf-se</artifactId>
>>>>>>                  <version>${servicemix-version}</version>
>>>>>>          </dependency>
>>>>>>          
>>>>>>          <dependency>
>>>>>>                  <groupId>org.apache.servicemix</groupId>
>>>>>>                  <artifactId>servicemix-core</artifactId>
>>>>>>                  <version>${servicemix-version}</version>
>>>>>>          </dependency>
>>>>>>
>>>>>>          <dependency>
>>>>>>                  <groupId>org.apache.cxf</groupId>
>>>>>>                  <artifactId>cxf-rt-frontend-jaxws</artifactId>
>>>>>>                  <version>2.0.9</version>
>>>>>>          </dependency>
>>>>>>          
>>>>>>          <dependency>
>>>>>>                  <groupId>org.springframework</groupId>
>>>>>>                  <artifactId>spring-context</artifactId>
>>>>>>                  <version>2.5.6</version>
>>>>>>                  <type>jar</type>
>>>>>>          </dependency>
>>>>>>          <dependency>
>>>>>> </dependencies>
>>>
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25487200.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to