Hi required is implied. So try changing
transacted("required"). to ... transacted(). On Thu, Jan 2, 2014 at 1:45 PM, fkfausa <frode.fa...@cgi.com> wrote: > Hi! > > I get the following error: > Caused by: org.apache.camel.RuntimeCamelException: > org.apache.camel.FailedToCreateRouteException: Failed to create route > BAS.G8.workorders.processJMSMessageRoute at: >>> Policy[ref:required] <<< in > route: Route[[From[activemq:queue:bas-integration.workorders.incomi... > because of No bean could be found in the registry for: required of type: > org.apache.camel.spi.Policy > > from this route: > > private void processJMSMessage() { > > > from("activemq:queue:bas-integration.workorders.incomingFromISCustomer"). > id("BAS.G8.workorders.processJMSMessageRoute"). > > errorHandler(deadLetterChannel("activemq:queue:bas-integration.workorders.deadLetter"). > useOriginalMessage(). > logHandled(true)). > end(). > onException(ConnectException.class). > maximumRedeliveries(2). > backOffMultiplier(2). > redeliveryDelay(5000). > useOriginalMessage(). > logExhausted(true). > logHandled(true). > logRetryStackTrace(true). > logStackTrace(true). > handled(true). > log("Putting message back to > 'activemq:queue:bas-integration.workorders.incomingFromISCustomer' due to a > ConnectionException. Server is probably down"). > > to("activemq:queue:bas-integration.workorders.incomingFromISCustomer"). > end(). > transacted("required"). > choice(). > > when(header("JMSType").isEqualTo("application/vnd.com.infosynergi.iscustomer.event.WorkOrderInitiatedEvent-v1+xml")). > process(extractWorkOrderInitiatedEvent). > > when(header("JMSType").isEqualTo("application/vnd.com.infosynergi.iscustomer.event.WorkOrderUpdatedEvent-v1+xml")). > process(extractWorkOrderUpdatedEvent). > > when(header("JMSType").isEqualTo("application/vnd.com.infosynergi.iscustomer.event.TechnicianWorkOrderUpdatedEvent-v1+xml")). > process(extractTechnicianWorkOrderUpdatedEvent). > end(). > to("bean://getTechnicianOrderProcessor?method=process"). > choice(). > when(header("TechnicianOrder").isNotNull()). > log(LoggingLevel.DEBUG, "Work Order Event will be handled by > this integration since technician order data exists for this work order"). > to("bean://getActorAssetProcessor?method=process"). > to("bean://getWorkOrderDetailsProcessor?method=process"). > > to("bean://createXellentCI_WorkOrderSoapRequestProcessor?method=process"). > > to("bean://sendXellentCI_WorkOrderSoapRequestProcessor?method=process"). > otherwise(). > log(LoggingLevel.DEBUG, "Work Order Event will NOT be > handled by this integration since NO technician order data exists for this > work order"). > end(). > log(LoggingLevel.DEBUG, "Successful routing"); > } > > Any suggestions on what the error is telling me? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Failed-to-create-route-tp5745435.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io