Quantcast

ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

angelwine
This post was updated on .
Hi,

We are trying to implement ServiceMix 7.0 with camel-sql-stored procedure call,
i recently found that the camel version 2.16.4 doesn,t support.

The first release is 2.17.1.

Is it possible to install the last 2.17.x release of camel

What is the dependence.

Do i have to update more than camel ?????


here my feature:
activemq-5.14.3 mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features
activemq-core-5.14.3 mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features-core
camel-2.16.4 mvn:org.apache.camel.karaf/apache-camel/2.16.4/xml/features
cxf-3.1.5 mvn:org.apache.cxf.karaf/apache-cxf/3.1.5/xml/features
enterprise-4.0.8 mvn:org.apache.karaf.features/enterprise/4.0.8/xml/features
framework-4.0.8 mvn:org.apache.karaf.features/framework/4.0.8/xml/features
jclouds-1.9.1 mvn:org.apache.jclouds.karaf/jclouds-karaf/1.9.1/xml/features
org.ops4j.pax.cdi-0.12.0 mvn:org.ops4j.pax.cdi/pax-cdi-features/0.12.0/xml/features
org.ops4j.pax.cdi-1.0.0.RC1 mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0.RC1/xml/features
org.ops4j.pax.jdbc-0.9.0 mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.9.0/xml/features
org.ops4j.pax.web-4.3.0 mvn:org.ops4j.pax.web/pax-web-features/4.3.0/xml/features
spring-4.0.8 mvn:org.apache.karaf.features/spring/4.0.8/xml/features
standard-4.0.8 mvn:org.apache.karaf.features/standard/4.0.8/xml/features


and i try to

    <bean id="ABFdataSource" class="oracle.jdbc.pool.OracleDataSource" >
        <property name="URL" value="jdbc:oracle:thin:@qx0101-rac:1521/serv_DEV01.xxx.xxx.xxx" />
        <property name="user" value="xxxxxxxxxxxx" />
        <property name="password" value="xbxbxbxbxbx" />
    </bean>


    <bean id="ABFsql" class="org.apache.camel.component.sql.SqlComponent">
        <property name="dataSource" ref="ABFdataSource" />
    </bean>

 <bean id="ABFsqlStored" class="org.apache.camel.component.sql.stored.SqlStoredComponent">
        <property name="dataSource" ref="ABFdataSource" />
    </bean>

<form uri ....>

<to uri="ABFsqlStored:pkg.fonction1(OUT INTEGER jobid,varchar 'XXX',varchar 'XXX070701',varchar ${header.codeUtil},varchar ${header.paramLancement},
varchar 'FICHIER',varchar ${header.CamelFilePath},OUT INTEGER RC)?datasource=ABFdataSource" />


but unaible to define ABFsqlStored  

org.apache.camel.component.sql.stored.SqlStoredComponent  NOT FOUND


Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

ksobkowiak
Hi

I think it is not so easy to replace the Camel version in the ServiceMix assembly. The simplest way is probably taking the source code, replacing the version and building the new assembly. I'm going to start work on ServiceMix 7.1.x next week which will have Camel 2.17.x installed.

Kindly regards
Krzysztof

On 20.03.2017 20:19, angelwine wrote:

> Hi,
>
> We are trying to implement ServiceMix 7.0 with camel-sql-stored procedure
> call,
> i recently found that the camel version 2.16.4 doesn,t support.
>
> The first release is 2.17.1.
>
> Is it possible to install the last 2.17.x release of camel
>
> What is the dependence.
>
> Do i have to update more than camel ?????
>
>
> Thanks
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-7-0-try-to-upgrade-Camel-from-2-16-4-to-2-17-x-tp5724329.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

angelwine
Thanks.

i figured it will be not so easy.
first try - remove 2.16.4 and install 2.17.1 but without  success...

i will continue to try.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

davedave
This post was updated on .
In reply to this post by angelwine
Hi,

I currently run 2.18.2 on servicemix 7.0. I've also run 2.17.x versions.

There are some dependencies issues which are tricky to get around, but
they're not well documented, as this upgrade is not encouraged. The usual
advice is to stop running servicemix if you want custom versions.

The simplest way to begin, is after a fresh install (before first boot),
modify the first param in etc/org.apache.karaf.features.cfg file to use
your desired camel feature repository
featuresRepositories = ...
ie, mvn:org.apache.camel.karaf/apache-camel/2.18.2/xml/features

This is also the place to modify the features installed when servicemix
initially boots "featuresBoot = "
Remove any that you know you do not need, as this will reduce dependency
issues.

An example problem.
If you use activemq, you'll meet your first hurdle. As the maven version of
org.apache.servicemix.activemq.camel-7.0.0.jar, requires camel spi up to
2.17 (not including).
If you don't wish to re-compile it, you can cheat and just modify the
META-INF/MANIFEST.MF inside the jar (jars are just zip files) - ie
"Import-Package: org.apache.camel.spi;version="[2.16,2.27)" - you can see I
changed mine to 2.27, so it didn't affect the file/line size.
Once changed, drop this file in to
system/org/apache/servicemix/activemq/org.apache.servicemix.activemq.camel/7.0.0/org.apache.servicemix.activemq.camel-7.0.0.jar
before boot, to make sure it gets used over the maven version.
system/org/apache/activemq/activemq-osgi/5.13.3/activemq-osgi-5.13.3.jar
might also need to be changed.

Good luck.

Cheers,
Dave

On Tue, Mar 21, 2017 at 6:19 AM, angelwine <daniel.langevin@shq.gouv.qc.ca>
wrote:

> Hi,
>
> We are trying to implement ServiceMix 7.0 with camel-sql-stored procedure
> call,
> i recently found that the camel version 2.16.4 doesn,t support.
>
> The first release is 2.17.1.
>
> Is it possible to install the last 2.17.x release of camel
>
> What is the dependence.
>
> Do i have to update more than camel ?????
>
>
> Thanks
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.
> nabble.com/ServiceMix-7-0-try-to-upgrade-Camel-from-2-16-4-
> to-2-17-x-tp5724329.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



--

david watson, director of data and infrastructure
w: www.scrmhub.com <https://scrmhub.com/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

angelwine
Hi Dave,

i will test that on next day.


Regards.


Daniel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ServiceMix 7.0 try to upgrade Camel from 2.16.4 to 2.17.x

angelwine
In reply to this post by davedave
I finally have time to make my test.

it works very well

Thanks again.



Daniel
Loading...