Hi,

I have a simple camel multicast. However when the route is like:

from(SERVICE_IN).multicast().to(SERVICEOUT2, SERVICEOUT1); //This does not work, it does not even deploy in SMX. Log shows error on deployment.


but

from(SERVICE_IN).multicast().to(SERVICEOUT1, SERVICEOUT2); //This works. It deploys and the messages reach fine. No error in the log.


SERVICE_IN, SERVICEOUT1, SERVICEOUT2 are strings denoting endpoints. The strings are initialized as follows:


private final static String JBI_SERVICE = "jbi:service:";
private final static String NAMESPACE_IN = "http://example.com/exampleServiceCamel123";;

private final static String NAMESPACE2 = "http://example.com/exampleServiceJSR2";; private final static String NAMESPACE3 = "http://example.com/exampleServiceJSR3";;

private final static String SERVICE_IN = JBI_SERVICE + NAMESPACE_IN + "/CamelEXService123"; // private final static String ODENAMESPACE = "http://sample.bpel.org/bpel/sample";; // private final static String ODESERVICEOUT = JBI_SERVICE + ODENAMESPACE
   //    + "/RemidationProcessProvider?operation=process";
private final static String JSRNAMESPACE = "http://example.com/exampleServiceJSR123";; private final static String methodName1 = "{http://example.com/exampleServiceJSR123}sayBye";; private final static String methodName2 = "{http://example.com/exampleServiceJSR2}sayHello";;

private final static String SERVICEOUT1 = JBI_SERVICE + JSRNAMESPACE + "/ExampleJSRService123" + "?operation="
       + methodName1;
private final static String SERVICEOUT2 = JBI_SERVICE + NAMESPACE2 + "/ExampleServiceJSR2" + "?operation="
       + methodName2;
private final static String SERVICEOUT3 = JBI_SERVICE + NAMESPACE3 + "/ExampleServiceJSR3"/*+ "?operation="+ methodName*/;


The log shows:

<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
   <component-name>servicemix-camel</component-name>
   <component-task-result-details>
       <task-result-details>
           <task-id>deploy</task-id>
           <task-result>FAILED</task-result>
           <message-type>ERROR</message-type>
           <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to find suitable deployer for Service Unit 'CamelJSRSU'</loc-message>
</msg-loc-info>
</task-status-msg>
       </task-result-details>
   </component-task-result-details>
</component-task-result>

I am using sercivemix 3.3

Thanks,
Sylvester

Reply via email to