Camel route doesn't start after deploying SwitchYard application in FSW

Solution Unverified - Updated -

Issue

  • I have a SwitchYard application with the following switchyard.xml:
<?xml version="1.0" encoding="UTF-8"?>
<sy:switchyard xmlns:camel="urn:switchyard-component-camel:config:1.1" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:sy="urn:switchyard-config:switchyard:1.1" name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:1.0">
  <sca:composite name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:1.0">
    <sca:component name="Component">
      <camel:implementation.camel>
        <camel:java class="com.example.switchyard.switchyard_example.TestRouteBuilder"></camel:java>
      </camel:implementation.camel>
    </sca:component>
  </sca:composite>
</sy:switchyard>
  • However, it is not starting the Camel route. See the server log below. When it tries to deploy the SwitchYard deployment artifact, the Camel route is not starting.
13:53:12,390 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment switchyard-example-0.0.1-SNAPSHOT.jar
13:53:12,401 INFO  [org.jboss.weld.deployer] (MSC service thread 1-12) JBAS016005: Starting Services for CDI deployment: switchyard-example-0.0.1-SNAPSHOT.jar
13:53:12,402 INFO  [org.switchyard] (MSC service thread 1-12) Deploying SwitchYard application 'switchyard-example-0.0.1-SNAPSHOT.jar'
13:53:12,405 INFO  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016008: Starting weld service for deployment switchyard-example-0.0.1-SNAPSHOT.jar
13:53:12,459 INFO  [org.switchyard] (MSC service thread 1-1) Starting SwitchYard service

13:53:12,464 INFO  [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-1) JMX enabled.
13:53:12,465 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 1.1.1-p5-redhat-1 (CamelContext: camel-3) is starting
13:53:12,488 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) Loaded 181 type converters
13:53:12,503 INFO  [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-1) StatisticsLevel at All so enabling load performance statistics
13:53:12,509 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Total 0 routes, of which 0 is started.
13:53:12,509 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 1.1.1-p5-redhat-1 (CamelContext: camel-3) started in 0.044 seconds
13:53:12,597 INFO  [org.jboss.as.server] (HttpManagementService-threads - 5) JBAS018559: Deployed "switchyard-example-0.0.1-SNAPSHOT.jar" (runtime-name : "switchyard-example-0.0.1-SNAPSHOT.jar")

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In