Hello,
Here is my camel config file :
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from
uri="jbi:endpoint:urn:fr:mipih:poc:soa:Routage:RouteVersAdmission"/>
<to uri="log:Before-routing"/>
<choice>
<when>
<xpath>.//prenom = 'John'</xpath>
<to
uri="jbi:endpoint:urn:fr:mipih:poc:soa:ProcessusAdmissionImplService:ProcessusAdmissionImplPort?mep=in-out"/>
<to uri="log:Routage-vers-reference"/>
</when>
<otherwise>
<to
uri="jbi:endpoint:urn:fr:mipih:poc:soa:ProcessusAdmissionImplBisService:ProcessusAdmissionImplBisPort?mep=in-out"/>
<to uri="log:Routage-vers-convergence"/>
</otherwise>
</choice>
</route>
</camelContext>
When an incoming message comes I get in the console :
2008-06-23 11:27:07,892 [-camel-thread-1] INFO Avant-routage -
Exchange[JbiMessage:
[EMAIL PROTECTED]:
{}}]
2008-06-23 11:27:08,282 [-camel-thread-1] INFO Routage-vers-convergence -
Exchange[Message: [EMAIL PROTECTED]
or
2008-06-23 11:27:16,048 [-camel-thread-4] INFO Avant-routage -
Exchange[JbiMessage:
[EMAIL PROTECTED]:
{}}]
2008-06-23 11:27:16,079 [-camel-thread-4] INFO Routage-vers-reference -
Exchange[Message: [EMAIL PROTECTED]
according to the message content (so the routing works fine !)
This is good but the target service (cxf webservice) receives a bad message
(nullpointer exception). Why do the message change between my first log and
the second from NormalizedMessage to StaxSource ? The problem is this change
because when I change my camel context to :
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="jbi:endpoint:urn:fr:mipih:poc:soa:Routage:RouteVersAdmission"/>
<to
uri="jbi:endpoint:urn:fr:mipih:poc:soa:ProcessusAdmissionImplBisService:ProcessusAdmissionImplBisPort?mep=in-out"/>
</route>
</camelContext>
everything works fine (but no routing...)
--
View this message in context:
http://www.nabble.com/Content-Based-Routing-with-Camel-tp18065614p18065614.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.