Red Hat Fuse Quickstart app “Content Based Router - Java DSL” does not work… -I.e., “work” folder...












0














PROBLEM:



Red Hat Fuse Quickstart app "Content Based Router - Java DSL" template does not work...
-I.e., when built, run and deployed (to "Red Hat Fuse 7.1") the "work" folder is never created.



Here is the java code...



package com.mycompany.camel;

import org.apache.camel.builder.RouteBuilder;

public class CamelRoute extends RouteBuilder {

@Override
public void configure() throws Exception {

from("file:work/cbr/input") //<== "work" folder not created...
.log("Receiving order ${file:name}")
.choice()
.when().xpath("//order/customer/country[text() = 'UK']")
.log("Sending order ${file:name} to the UK")
.to("file:work/cbr/output/uk")
.when().xpath("//order/customer/country[text() = 'US']")
.log("Sending order ${file:name} to the US")
.to("file:work/cbr/output/us")
.otherwise()
.log("Sending order ${file:name} to another country")
.to("file:work/cbr/output/others")
.log("Done processing ${file:name}");
}

}


Note that the "Content Based Router - Blueprint DSL" does work (i.e., it uses blueprint.xml file to define route, rather than Java code).



I'm using the "quickstart" template found in "Red Hat Developer Studio"...



i.e.,



File-->New-->Fuse Integration Project-->[create project name]-->choose "Standalone" platform, choose "Karaf/Fuse on Karaf"--> under "Beginner" choose "Content Based Router - Java DSL" --> Finish--> etc.....



Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)....



Any hints or pointers on what might be missing from the template project and/or configuration?



Wondering: Is Java DSL going by the wayside in favor of Spring DSL and/or Blueprint DSL?...

(I had used Java DSL with old Jboss Fuse 6.3 and liked it... --hoped to use it again)



Thanks for any help! :-)



fwiw, here is the the pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>camel-java-cbr</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Fuse CBR Quickstart - Java</name>
<description>Camel Content-Based Router Example using the Java DSL</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<version.maven-bundle-plugin>3.2.0</version.maven-bundle-plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jboss.fuse.bom.version>7.1.0.fuse-710023-redhat-00001</jboss.fuse.bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.fuse</groupId>
<artifactId>jboss-fuse-parent</artifactId>
<version>${jboss.fuse.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.maven-bundle-plugin}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>myJavaDsl</Bundle-SymbolicName>
<Bundle-Name>Camel Content-Based Router Example using the Java DSL [myJavaDsl]</Bundle-Name></instructions></configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.mycompany.camel.Launcher</mainClass>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>




Red Hat Developer Studio, Version: 12.9.0.GA



fuse-karaf-7.1.0.fuse-710023-redhat-00001



jdk1.8.0_121



C:apache-maven-3.6.0



Using Quickstart projects are referred to in Red Hat Fuse Tooling User Guide - PDF










share|improve this question
























  • What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
    – Tadayoshi Sato
    Nov 19 at 2:57










  • hi T. -No difference. Folder is still not created. thx! sd
    – sairn
    Nov 26 at 19:54












  • "Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
    – Aurélien Pupier
    Dec 10 at 8:37












  • @AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
    – Tomas Sedmik
    Dec 10 at 13:14
















0














PROBLEM:



Red Hat Fuse Quickstart app "Content Based Router - Java DSL" template does not work...
-I.e., when built, run and deployed (to "Red Hat Fuse 7.1") the "work" folder is never created.



Here is the java code...



package com.mycompany.camel;

import org.apache.camel.builder.RouteBuilder;

public class CamelRoute extends RouteBuilder {

@Override
public void configure() throws Exception {

from("file:work/cbr/input") //<== "work" folder not created...
.log("Receiving order ${file:name}")
.choice()
.when().xpath("//order/customer/country[text() = 'UK']")
.log("Sending order ${file:name} to the UK")
.to("file:work/cbr/output/uk")
.when().xpath("//order/customer/country[text() = 'US']")
.log("Sending order ${file:name} to the US")
.to("file:work/cbr/output/us")
.otherwise()
.log("Sending order ${file:name} to another country")
.to("file:work/cbr/output/others")
.log("Done processing ${file:name}");
}

}


Note that the "Content Based Router - Blueprint DSL" does work (i.e., it uses blueprint.xml file to define route, rather than Java code).



I'm using the "quickstart" template found in "Red Hat Developer Studio"...



i.e.,



File-->New-->Fuse Integration Project-->[create project name]-->choose "Standalone" platform, choose "Karaf/Fuse on Karaf"--> under "Beginner" choose "Content Based Router - Java DSL" --> Finish--> etc.....



Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)....



Any hints or pointers on what might be missing from the template project and/or configuration?



Wondering: Is Java DSL going by the wayside in favor of Spring DSL and/or Blueprint DSL?...

(I had used Java DSL with old Jboss Fuse 6.3 and liked it... --hoped to use it again)



Thanks for any help! :-)



fwiw, here is the the pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>camel-java-cbr</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Fuse CBR Quickstart - Java</name>
<description>Camel Content-Based Router Example using the Java DSL</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<version.maven-bundle-plugin>3.2.0</version.maven-bundle-plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jboss.fuse.bom.version>7.1.0.fuse-710023-redhat-00001</jboss.fuse.bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.fuse</groupId>
<artifactId>jboss-fuse-parent</artifactId>
<version>${jboss.fuse.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.maven-bundle-plugin}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>myJavaDsl</Bundle-SymbolicName>
<Bundle-Name>Camel Content-Based Router Example using the Java DSL [myJavaDsl]</Bundle-Name></instructions></configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.mycompany.camel.Launcher</mainClass>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>




Red Hat Developer Studio, Version: 12.9.0.GA



fuse-karaf-7.1.0.fuse-710023-redhat-00001



jdk1.8.0_121



C:apache-maven-3.6.0



Using Quickstart projects are referred to in Red Hat Fuse Tooling User Guide - PDF










share|improve this question
























  • What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
    – Tadayoshi Sato
    Nov 19 at 2:57










  • hi T. -No difference. Folder is still not created. thx! sd
    – sairn
    Nov 26 at 19:54












  • "Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
    – Aurélien Pupier
    Dec 10 at 8:37












  • @AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
    – Tomas Sedmik
    Dec 10 at 13:14














0












0








0


1





PROBLEM:



Red Hat Fuse Quickstart app "Content Based Router - Java DSL" template does not work...
-I.e., when built, run and deployed (to "Red Hat Fuse 7.1") the "work" folder is never created.



Here is the java code...



package com.mycompany.camel;

import org.apache.camel.builder.RouteBuilder;

public class CamelRoute extends RouteBuilder {

@Override
public void configure() throws Exception {

from("file:work/cbr/input") //<== "work" folder not created...
.log("Receiving order ${file:name}")
.choice()
.when().xpath("//order/customer/country[text() = 'UK']")
.log("Sending order ${file:name} to the UK")
.to("file:work/cbr/output/uk")
.when().xpath("//order/customer/country[text() = 'US']")
.log("Sending order ${file:name} to the US")
.to("file:work/cbr/output/us")
.otherwise()
.log("Sending order ${file:name} to another country")
.to("file:work/cbr/output/others")
.log("Done processing ${file:name}");
}

}


Note that the "Content Based Router - Blueprint DSL" does work (i.e., it uses blueprint.xml file to define route, rather than Java code).



I'm using the "quickstart" template found in "Red Hat Developer Studio"...



i.e.,



File-->New-->Fuse Integration Project-->[create project name]-->choose "Standalone" platform, choose "Karaf/Fuse on Karaf"--> under "Beginner" choose "Content Based Router - Java DSL" --> Finish--> etc.....



Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)....



Any hints or pointers on what might be missing from the template project and/or configuration?



Wondering: Is Java DSL going by the wayside in favor of Spring DSL and/or Blueprint DSL?...

(I had used Java DSL with old Jboss Fuse 6.3 and liked it... --hoped to use it again)



Thanks for any help! :-)



fwiw, here is the the pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>camel-java-cbr</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Fuse CBR Quickstart - Java</name>
<description>Camel Content-Based Router Example using the Java DSL</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<version.maven-bundle-plugin>3.2.0</version.maven-bundle-plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jboss.fuse.bom.version>7.1.0.fuse-710023-redhat-00001</jboss.fuse.bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.fuse</groupId>
<artifactId>jboss-fuse-parent</artifactId>
<version>${jboss.fuse.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.maven-bundle-plugin}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>myJavaDsl</Bundle-SymbolicName>
<Bundle-Name>Camel Content-Based Router Example using the Java DSL [myJavaDsl]</Bundle-Name></instructions></configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.mycompany.camel.Launcher</mainClass>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>




Red Hat Developer Studio, Version: 12.9.0.GA



fuse-karaf-7.1.0.fuse-710023-redhat-00001



jdk1.8.0_121



C:apache-maven-3.6.0



Using Quickstart projects are referred to in Red Hat Fuse Tooling User Guide - PDF










share|improve this question















PROBLEM:



Red Hat Fuse Quickstart app "Content Based Router - Java DSL" template does not work...
-I.e., when built, run and deployed (to "Red Hat Fuse 7.1") the "work" folder is never created.



Here is the java code...



package com.mycompany.camel;

import org.apache.camel.builder.RouteBuilder;

public class CamelRoute extends RouteBuilder {

@Override
public void configure() throws Exception {

from("file:work/cbr/input") //<== "work" folder not created...
.log("Receiving order ${file:name}")
.choice()
.when().xpath("//order/customer/country[text() = 'UK']")
.log("Sending order ${file:name} to the UK")
.to("file:work/cbr/output/uk")
.when().xpath("//order/customer/country[text() = 'US']")
.log("Sending order ${file:name} to the US")
.to("file:work/cbr/output/us")
.otherwise()
.log("Sending order ${file:name} to another country")
.to("file:work/cbr/output/others")
.log("Done processing ${file:name}");
}

}


Note that the "Content Based Router - Blueprint DSL" does work (i.e., it uses blueprint.xml file to define route, rather than Java code).



I'm using the "quickstart" template found in "Red Hat Developer Studio"...



i.e.,



File-->New-->Fuse Integration Project-->[create project name]-->choose "Standalone" platform, choose "Karaf/Fuse on Karaf"--> under "Beginner" choose "Content Based Router - Java DSL" --> Finish--> etc.....



Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)....



Any hints or pointers on what might be missing from the template project and/or configuration?



Wondering: Is Java DSL going by the wayside in favor of Spring DSL and/or Blueprint DSL?...

(I had used Java DSL with old Jboss Fuse 6.3 and liked it... --hoped to use it again)



Thanks for any help! :-)



fwiw, here is the the pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>camel-java-cbr</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Fuse CBR Quickstart - Java</name>
<description>Camel Content-Based Router Example using the Java DSL</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<version.maven-bundle-plugin>3.2.0</version.maven-bundle-plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jboss.fuse.bom.version>7.1.0.fuse-710023-redhat-00001</jboss.fuse.bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.fuse</groupId>
<artifactId>jboss-fuse-parent</artifactId>
<version>${jboss.fuse.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>fuse-public-repository</id>
<name>FuseSource Community Release Repository</name>
<url>https://repo.fusesource.com/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ga-repository</id>
<name>Red Hat GA Repository</name>
<url>https://maven.repository.redhat.com/ga</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>red-hat-ea-repository</id>
<name>Red Hat EA Repository</name>
<url>https://maven.repository.redhat.com/earlyaccess/all</url>
</pluginRepository>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jboss-ea-repository</id>
<name>Red Hat JBoss Early Access Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/ea</url>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.maven-bundle-plugin}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>myJavaDsl</Bundle-SymbolicName>
<Bundle-Name>Camel Content-Based Router Example using the Java DSL [myJavaDsl]</Bundle-Name></instructions></configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.mycompany.camel.Launcher</mainClass>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>




Red Hat Developer Studio, Version: 12.9.0.GA



fuse-karaf-7.1.0.fuse-710023-redhat-00001



jdk1.8.0_121



C:apache-maven-3.6.0



Using Quickstart projects are referred to in Red Hat Fuse Tooling User Guide - PDF







java-8 apache-camel jbossfuse apache-servicemix jboss-tools






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 6 at 16:09

























asked Nov 15 at 22:50









sairn

16821542




16821542












  • What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
    – Tadayoshi Sato
    Nov 19 at 2:57










  • hi T. -No difference. Folder is still not created. thx! sd
    – sairn
    Nov 26 at 19:54












  • "Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
    – Aurélien Pupier
    Dec 10 at 8:37












  • @AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
    – Tomas Sedmik
    Dec 10 at 13:14


















  • What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
    – Tadayoshi Sato
    Nov 19 at 2:57










  • hi T. -No difference. Folder is still not created. thx! sd
    – sairn
    Nov 26 at 19:54












  • "Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
    – Aurélien Pupier
    Dec 10 at 8:37












  • @AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
    – Tomas Sedmik
    Dec 10 at 13:14
















What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
– Tadayoshi Sato
Nov 19 at 2:57




What happens if you instead specify file://C:/AAAInput and file://C:/BBBOutput for the file endpoints?
– Tadayoshi Sato
Nov 19 at 2:57












hi T. -No difference. Folder is still not created. thx! sd
– sairn
Nov 26 at 19:54






hi T. -No difference. Folder is still not created. thx! sd
– sairn
Nov 26 at 19:54














"Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
– Aurélien Pupier
Dec 10 at 8:37






"Built and hot deployed... The Java DSL quickstart project starts and runs - but, it stops short of creating the parent "work" folder (much less the other subfolders)...." Which method are you using to build and deploy? I tried and it is working fine if i right-click on project and launch as java application. Then right-click-> refresh on the project, the work/cbr/input folder is available. When you say it "stops", do you have some specific logs?
– Aurélien Pupier
Dec 10 at 8:37














@AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
– Tomas Sedmik
Dec 10 at 13:14




@AurélienPupier yes, it is working as local Java application, but if I try to deploy it on Fuse runtime, the route is not started
– Tomas Sedmik
Dec 10 at 13:14












3 Answers
3






active

oldest

votes


















2





+50









I did the following steps to make it work with Fuse runtime:




  1. create a new Fuse Integration Project - Standalone, Karaf / Fuse on Karaf, CBR - Java DSL

  2. create a new folders and file "src/main/resources/OSGI-INF/blueprint/blueprint.xml

  3. blueprint.xml file content:


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.mycompany.camel.CamelRoute" id="myRouteBuilder"/>
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="myRouteBuilder"/>
</camelContext>
</blueprint>




  1. deploy the project via Servers view in Red Hat Developer Studio


Because the file is in the OSGI-INF/blueprint directory inside our JAR, it will be automatically activated as soon as the bundle is installed. This is possible because Red Hat Fuse uses Apache Karaf with Blueprint deployer - see Deploying into Apache Karaf - OSGi Services



Anyway, provided templates should work out-of-the-box. Therefore I raised an issue for the developers of Fuse Tooling - https://issues.jboss.org/browse/FUSETOOLS-3178






share|improve this answer























  • Thank you, Tomas.
    – sairn
    Dec 11 at 15:13



















0














Check the folder permissions for C: and also use the uri as mentioned below:



from("file://C:/AAAInput/?autoCreate=true&noop=true")






share|improve this answer





















  • Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
    – sairn
    Nov 26 at 19:55



















0














Looks like your route didn't start at all. Try to use direct ref to route builder instead of package scan like this:



<camel:camelContext id="aaa.bbb.ccc.jar" xmlns="http://camel.apache.org/schema/blueprint">
<camel:routeBuilder ref="routeBuilder"/>
</camel:camelContext>
<bean id="routeBuilder" class="aaa.bbb.ccc.jar.CamelRoute" />





share|improve this answer





















  • thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
    – sairn
    Dec 5 at 23:22











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53328978%2fred-hat-fuse-quickstart-app-content-based-router-java-dsl-does-not-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









2





+50









I did the following steps to make it work with Fuse runtime:




  1. create a new Fuse Integration Project - Standalone, Karaf / Fuse on Karaf, CBR - Java DSL

  2. create a new folders and file "src/main/resources/OSGI-INF/blueprint/blueprint.xml

  3. blueprint.xml file content:


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.mycompany.camel.CamelRoute" id="myRouteBuilder"/>
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="myRouteBuilder"/>
</camelContext>
</blueprint>




  1. deploy the project via Servers view in Red Hat Developer Studio


Because the file is in the OSGI-INF/blueprint directory inside our JAR, it will be automatically activated as soon as the bundle is installed. This is possible because Red Hat Fuse uses Apache Karaf with Blueprint deployer - see Deploying into Apache Karaf - OSGi Services



Anyway, provided templates should work out-of-the-box. Therefore I raised an issue for the developers of Fuse Tooling - https://issues.jboss.org/browse/FUSETOOLS-3178






share|improve this answer























  • Thank you, Tomas.
    – sairn
    Dec 11 at 15:13
















2





+50









I did the following steps to make it work with Fuse runtime:




  1. create a new Fuse Integration Project - Standalone, Karaf / Fuse on Karaf, CBR - Java DSL

  2. create a new folders and file "src/main/resources/OSGI-INF/blueprint/blueprint.xml

  3. blueprint.xml file content:


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.mycompany.camel.CamelRoute" id="myRouteBuilder"/>
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="myRouteBuilder"/>
</camelContext>
</blueprint>




  1. deploy the project via Servers view in Red Hat Developer Studio


Because the file is in the OSGI-INF/blueprint directory inside our JAR, it will be automatically activated as soon as the bundle is installed. This is possible because Red Hat Fuse uses Apache Karaf with Blueprint deployer - see Deploying into Apache Karaf - OSGi Services



Anyway, provided templates should work out-of-the-box. Therefore I raised an issue for the developers of Fuse Tooling - https://issues.jboss.org/browse/FUSETOOLS-3178






share|improve this answer























  • Thank you, Tomas.
    – sairn
    Dec 11 at 15:13














2





+50







2





+50



2




+50




I did the following steps to make it work with Fuse runtime:




  1. create a new Fuse Integration Project - Standalone, Karaf / Fuse on Karaf, CBR - Java DSL

  2. create a new folders and file "src/main/resources/OSGI-INF/blueprint/blueprint.xml

  3. blueprint.xml file content:


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.mycompany.camel.CamelRoute" id="myRouteBuilder"/>
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="myRouteBuilder"/>
</camelContext>
</blueprint>




  1. deploy the project via Servers view in Red Hat Developer Studio


Because the file is in the OSGI-INF/blueprint directory inside our JAR, it will be automatically activated as soon as the bundle is installed. This is possible because Red Hat Fuse uses Apache Karaf with Blueprint deployer - see Deploying into Apache Karaf - OSGi Services



Anyway, provided templates should work out-of-the-box. Therefore I raised an issue for the developers of Fuse Tooling - https://issues.jboss.org/browse/FUSETOOLS-3178






share|improve this answer














I did the following steps to make it work with Fuse runtime:




  1. create a new Fuse Integration Project - Standalone, Karaf / Fuse on Karaf, CBR - Java DSL

  2. create a new folders and file "src/main/resources/OSGI-INF/blueprint/blueprint.xml

  3. blueprint.xml file content:


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.mycompany.camel.CamelRoute" id="myRouteBuilder"/>
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="myRouteBuilder"/>
</camelContext>
</blueprint>




  1. deploy the project via Servers view in Red Hat Developer Studio


Because the file is in the OSGI-INF/blueprint directory inside our JAR, it will be automatically activated as soon as the bundle is installed. This is possible because Red Hat Fuse uses Apache Karaf with Blueprint deployer - see Deploying into Apache Karaf - OSGi Services



Anyway, provided templates should work out-of-the-box. Therefore I raised an issue for the developers of Fuse Tooling - https://issues.jboss.org/browse/FUSETOOLS-3178







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 10 at 19:46

























answered Dec 10 at 19:27









Tomas Sedmik

1716




1716












  • Thank you, Tomas.
    – sairn
    Dec 11 at 15:13


















  • Thank you, Tomas.
    – sairn
    Dec 11 at 15:13
















Thank you, Tomas.
– sairn
Dec 11 at 15:13




Thank you, Tomas.
– sairn
Dec 11 at 15:13













0














Check the folder permissions for C: and also use the uri as mentioned below:



from("file://C:/AAAInput/?autoCreate=true&noop=true")






share|improve this answer





















  • Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
    – sairn
    Nov 26 at 19:55
















0














Check the folder permissions for C: and also use the uri as mentioned below:



from("file://C:/AAAInput/?autoCreate=true&noop=true")






share|improve this answer





















  • Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
    – sairn
    Nov 26 at 19:55














0












0








0






Check the folder permissions for C: and also use the uri as mentioned below:



from("file://C:/AAAInput/?autoCreate=true&noop=true")






share|improve this answer












Check the folder permissions for C: and also use the uri as mentioned below:



from("file://C:/AAAInput/?autoCreate=true&noop=true")







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 at 8:23









VarunKrish

1117




1117












  • Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
    – sairn
    Nov 26 at 19:55


















  • Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
    – sairn
    Nov 26 at 19:55
















Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
– sairn
Nov 26 at 19:55




Hi V. - Tried this before, but - in the event I missed some syntactical nuance - I retried. Folder still does not get created. Thx! sd
– sairn
Nov 26 at 19:55











0














Looks like your route didn't start at all. Try to use direct ref to route builder instead of package scan like this:



<camel:camelContext id="aaa.bbb.ccc.jar" xmlns="http://camel.apache.org/schema/blueprint">
<camel:routeBuilder ref="routeBuilder"/>
</camel:camelContext>
<bean id="routeBuilder" class="aaa.bbb.ccc.jar.CamelRoute" />





share|improve this answer





















  • thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
    – sairn
    Dec 5 at 23:22
















0














Looks like your route didn't start at all. Try to use direct ref to route builder instead of package scan like this:



<camel:camelContext id="aaa.bbb.ccc.jar" xmlns="http://camel.apache.org/schema/blueprint">
<camel:routeBuilder ref="routeBuilder"/>
</camel:camelContext>
<bean id="routeBuilder" class="aaa.bbb.ccc.jar.CamelRoute" />





share|improve this answer





















  • thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
    – sairn
    Dec 5 at 23:22














0












0








0






Looks like your route didn't start at all. Try to use direct ref to route builder instead of package scan like this:



<camel:camelContext id="aaa.bbb.ccc.jar" xmlns="http://camel.apache.org/schema/blueprint">
<camel:routeBuilder ref="routeBuilder"/>
</camel:camelContext>
<bean id="routeBuilder" class="aaa.bbb.ccc.jar.CamelRoute" />





share|improve this answer












Looks like your route didn't start at all. Try to use direct ref to route builder instead of package scan like this:



<camel:camelContext id="aaa.bbb.ccc.jar" xmlns="http://camel.apache.org/schema/blueprint">
<camel:routeBuilder ref="routeBuilder"/>
</camel:camelContext>
<bean id="routeBuilder" class="aaa.bbb.ccc.jar.CamelRoute" />






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 5 at 12:37









c0ld

400210




400210












  • thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
    – sairn
    Dec 5 at 23:22


















  • thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
    – sairn
    Dec 5 at 23:22
















thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
– sairn
Dec 5 at 23:22




thx, c0ld. Unfortunately, made no difference. wondering whether the quickstart template provided contains correct dependencies, etc for the standalone Java DSL routebuilder.
– sairn
Dec 5 at 23:22


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53328978%2fred-hat-fuse-quickstart-app-content-based-router-java-dsl-does-not-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?