You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Kris van Kooten <kr...@gmail.com> on 2015/04/04 16:38:08 UTC

jbi-service-unit 5.4 not working

I have a problem with jbi-service-unit in Servicemix versie 5.3.x and 5.4.x.
Its jar is ignored in the deploy folder.
In version 5.1.x it works perfect:
I use it for shared java BEANS.
Here's my 5.1.4 POM

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>nl.brein.connections</groupId>
        <artifactId>settings</artifactId>
        <version>3.0-SNAPSHOT</version>
    </parent>
    <groupId>nl.brein.connections</groupId>
    <artifactId>bob-su</artifactId>
        <packaging>jbi-service-unit</packaging>
    <version>2.1.23</version>
    <name>Brein Library for connect 2.7</name>
    <properties>
        <componentName>servicemix-camel</componentName>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.servicemix</groupId>
            <artifactId>servicemix-camel</artifactId>
            <version>2013.01</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-core</artifactId>
            <version>2.13.2</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-saxon</artifactId>
            <version>2.13.2</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-http</artifactId>
            <version>2.13.2</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-mail</artifactId>
            <version>2.13.2</version>
            
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-jetty</artifactId>
            <version>2.13.2</version>
            
        </dependency>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>javax.mail-api</artifactId>
            <version>1.5.2</version>
            <type>jar</type>
        </dependency>
        
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-test-blueprint</artifactId>
            <version>2.13.2</version>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.8</version>
        </dependency>
    </dependencies>

    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.servicemix.tooling</groupId>
                <artifactId>jbi-maven-plugin</artifactId>
                <version>3.2.3</version>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.17</version>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <url>http://repo1.maven.org/maven2/</url>
            <id>junit_4</id>
            <layout>default</layout>
            <name>Repository for library Library[junit_4]</name>
        </repository>
    </repositories>
</project>



--
View this message in context: http://servicemix.396122.n5.nabble.com/jbi-service-unit-5-4-not-working-tp5722463.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: jbi-service-unit 5.4 not working

Posted by Kris van Kooten <kr...@gmail.com>.
Thanks....
You’re sample triggered my solution.....
I can now start to upgrade to 5.4.0 !!!

Kris



--
View this message in context: http://servicemix.396122.n5.nabble.com/jbi-service-unit-5-4-not-working-tp5722463p5722473.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: jbi-service-unit 5.4 not working

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi

Please check this sample https://github.com/apache/servicemix/blob/master/examples/camel/camel-cxf-rest. The bundle
camel-cxf-rest-route defines a route which takes the request from a rest service and sends it into the direct-vm
endpoint. The other bundle camel-cxf-rest-service defines a route which starts with the direct-vm endpoint and processes
the request with a defined processor. You can use the vm or direct-vm endpoints to connect 2 routes defined in 2
separate bundles. Hope it helps

Regards
Krzysztof

On 06.04.2015 11:06, Kris van Kooten wrote:
> Many Thanks!!!.
>
> Any sample of how to use shared beans accros multiple routes in multiple
> projects in pure Camel?
> I can't find any examples or documentation....
>
> Regards,
> Kris
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/jbi-service-unit-5-4-not-working-tp5722463p5722469.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Re: jbi-service-unit 5.4 not working

Posted by Kris van Kooten <kr...@gmail.com>.
Many Thanks!!!.

Any sample of how to use shared beans accros multiple routes in multiple
projects in pure Camel?
I can't find any examples or documentation....

Regards,
Kris



--
View this message in context: http://servicemix.396122.n5.nabble.com/jbi-service-unit-5-4-not-working-tp5722463p5722469.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: jbi-service-unit 5.4 not working

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi

The support for deprecated JBI and NMR has been dropped in ServiceMix 5.x. You should use pure Camel instead.

Regards
Krzysztof

On 04.04.2015 16:38, Kris van Kooten wrote:
> I have a problem with jbi-service-unit in Servicemix versie 5.3.x and 5.4.x.
> Its jar is ignored in the deploy folder.
> In version 5.1.x it works perfect:
> I use it for shared java BEANS.
> Here's my 5.1.4 POM
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <parent>
>         <groupId>nl.brein.connections</groupId>
>         <artifactId>settings</artifactId>
>         <version>3.0-SNAPSHOT</version>
>     </parent>
>     <groupId>nl.brein.connections</groupId>
>     <artifactId>bob-su</artifactId>
>         <packaging>jbi-service-unit</packaging>
>     <version>2.1.23</version>
>     <name>Brein Library for connect 2.7</name>
>     <properties>
>         <componentName>servicemix-camel</componentName>
>     </properties>
>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.servicemix</groupId>
>             <artifactId>servicemix-camel</artifactId>
>             <version>2013.01</version>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-core</artifactId>
>             <version>2.13.2</version>
>             <type>jar</type>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-saxon</artifactId>
>             <version>2.13.2</version>
>             <type>jar</type>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-http</artifactId>
>             <version>2.13.2</version>
>             <type>jar</type>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-mail</artifactId>
>             <version>2.13.2</version>
>             
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-jetty</artifactId>
>             <version>2.13.2</version>
>             
>         </dependency>
>         <dependency>
>             <groupId>javax.mail</groupId>
>             <artifactId>javax.mail-api</artifactId>
>             <version>1.5.2</version>
>             <type>jar</type>
>         </dependency>
>         
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <version>4.11</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-test-blueprint</artifactId>
>             <version>2.13.2</version>
>             <scope>test</scope>
>             <type>jar</type>
>         </dependency>
>         <dependency>
>             <groupId>commons-codec</groupId>
>             <artifactId>commons-codec</artifactId>
>             <version>1.8</version>
>         </dependency>
>     </dependencies>
>
>     <build>
>         <defaultGoal>install</defaultGoal>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.servicemix.tooling</groupId>
>                 <artifactId>jbi-maven-plugin</artifactId>
>                 <version>3.2.3</version>
>                 <extensions>true</extensions>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.17</version>
>             </plugin>
>         </plugins>
>     </build>
>     <repositories>
>         <repository>
>             <url>http://repo1.maven.org/maven2/</url>
>             <id>junit_4</id>
>             <layout>default</layout>
>             <name>Repository for library Library[junit_4]</name>
>         </repository>
>     </repositories>
> </project>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/jbi-service-unit-5-4-not-working-tp5722463.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>