I have the following setup

camel-sa that contains : camel-su & cxfbc-su
camel-su : camel-context.xml contains 

                <camel:endpoint id="mediator-file-csv-receiver"
uri="file://${esb.mediator.csv.upload.directory}"/>
                
                <bean id="mediatorBindyDataformat"
class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat">
                        <constructor-arg 
value="com.mycompany.xpert.upload.domain" />
                </bean>
                
                
                <camel:route>
                        <camel:from ref="mediator-file-csv-receiver" />
                        <camel:to ref="log-request" />
                        <camel:unmarshal>
                                <camel:bindy type="Csv" 
packages="com.mycompany.xpert.upload.domain"/>
                        </camel:unmarshal>
                        <camel:split>
                                <camel:simple>body</camel:simple>
                                <camel:marshal ref="xstream-utf8" />
                                <camel:convertBodyTo type="java.lang.String" />
                                <camel:to
uri="jbi:endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint";
/>
                        </camel:split>
                </camel:route>
                
                
                <camel:route>
                        <camel:from
uri="jbi:endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint";
/>
                        <camel:to
uri="jbi:endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorService/MediatorWS?mep=in&amp;operation={http://www.mycompany.com/xpert/mediator/service/MediatorService}uploadMediator";
/>
                </camel:route>

cxfbc-su : xbean.xml contains 

<cxfbc:provider wsdl="classpath:MediatorService.wsdl"
                locationURI="${uploadMediatorURI}"
                interfaceName="mediator:MediatorService" 
service="mediator:MediatorWS"
                useJBIWrapper="false" useSOAPEnvelope="false"
busCfg="http_conduit_config.xml"/>


file polling : OK
convert csv file to objects with bindy : OK
convert objects to xml : OK
send xml to application webservice : NOK

Then I get the following exception which is not clear to me :

INFO   | jvm 1    | 2012/09/15 23:44:32 | DEBUG - DefaultErrorHandler           
- Failed delivery for exchangeId: ID-vm-1365-1347742430821-7-6. On delivery
attempt: 0 caught: javax.jbi.messaging.MessagingException: Could not find
route for exchange: InOnly[
INFO   | jvm 1    | 2012/09/15 23:44:32 |   id:
ID:192.168.152.39-139cbb55277-3:9
INFO   | jvm 1    | 2012/09/15 23:44:32 |   status: Active
INFO   | jvm 1    | 2012/09/15 23:44:32 |   role: provider
INFO   | jvm 1    | 2012/09/15 23:44:32 |   operation:
{http://www.mycompany.com/xpert/mediator/service/MediatorService}uploadMediator
INFO   | jvm 1    | 2012/09/15 23:44:32 |   in: <?xml version="1.0"
encoding="UTF-8"?><map><entry><string>com.mycompany.xpert.upload.domain.MediatorUpload</string><com.mycompany.xpert.upload.domain.MediatorUpload><producerNumber>producerNumber</producerNumber><company>company</company><reference>reference</reference><firstName>firstName</firstName><lastName>lastName</lastName><phone>phone</phone><fax>fax</fax><mobile>mobile</mobile>email<cbfaNumber>9999</cbfaNumber><language>language</language><street>street</street><zipcode>zipcode</zipcode><houseNumber>houseNumber</houseNumber><busNumber>busNumber</busNumber><city>city2</city><country>country</country></com.mycompany.xpert.upload.domain.MediatorUpload></entry></map>
INFO   | jvm 1    | 2012/09/15 23:44:32 | ] for service: null and interface:
null







--
View this message in context: 
http://camel.465427.n5.nabble.com/javax-jbi-messaging-MessagingException-Could-not-find-route-for-exchange-tp5719417.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to