Andrej Koelewijn

  • Home
  • About
  • Publications
  • Departments
    • agile
    • architecture
    • cloud
    • java
    • mobile
    • open standards
    • oracle
    • oss
    • other
    • soa
    • software development
    • tablet
    • Uncategorized
    • web
  • Subscribe via RSS

Upgrade Apache Camel in ServiceMix to version 2.3.0

June 15th, 2010  |  Published in java, oss, soa  |  3 Comments

Apache ServiceMix 4.2 includes Apache Camel 2.2.0. The following steps outline how you can add Apache Camel 2.3.0 in the same ServiceMix instance. This example uses the versions as released by Progress Fuse.

Go to the ServiceMix console, either by starting servicemix, or by ssh-ing into ServiceMix. To install Camel 2.3 we need to add a features repository. You can list the currently registered repositories using features:listUrl:

karaf@root> features:listUrl
mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.2.0-fuse-01-00/xml/features
mvn:org.apache.felix.karaf/apache-felix-karaf/1.4.0-fuse-01-00/xml/features
mvn:org.apache.servicemix/apache-servicemix/4.2.0-fuse-01-00/xml/features
mvn:org.apache.camel.karaf/apache-camel/2.2.0-fuse-01-00/xml/features
mvn:org.apache.ode/ode-jbi-karaf/1.3.3-fuse-01-00/xml/features

Add the URL for the Camel 2.3.0 repository:

karaf@root> features:addUrl  \
  mvn:org.apache.camel.karaf/apache-camel/2.3.0-fuse-01-00/xml/features

Verify that the repository has been added:

karaf@root> features:listUrl
mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.2.0-fuse-01-00/xml/features
mvn:org.apache.felix.karaf/apache-felix-karaf/1.4.0-fuse-01-00/xml/features
mvn:org.apache.camel.karaf/apache-camel/2.3.0-fuse-01-00/xml/features
mvn:org.apache.servicemix/apache-servicemix/4.2.0-fuse-01-00/xml/features
mvn:org.apache.camel.karaf/apache-camel/2.2.0-fuse-01-00/xml/features
mvn:org.apache.ode/ode-jbi-karaf/1.3.3-fuse-01-00/xml/features

Using features:list you can see that new features are now available for installation:

karaf@root> features:list
State         Version                Name                                 Repository
...
[uninstalled] [2.3.0-fuse-01-00    ] camel                                repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-core                           repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-spring-osgi                    repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-test                           repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-cxf                            repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-cache                          repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-castor                         repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-crypto                         repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-dozer                          repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-http                           repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-http4                          repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-mina                           repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-jetty                          repo-0
[uninstalled] [2.3.0-fuse-01-00    ] camel-servlet                        repo-0
...

Install camel using features:install:

karaf@root> features:install camel-core 2.3.0-fuse-01-00

You can verify that the camel osgi bundle has been installed using osgi:list:

karaf@root> osgi:list
START LEVEL 100
   ID   State         Blueprint      Spring    Level  Name
[   0] [Active     ] [            ] [       ] [    0] OSGi System Bundle (3.5.1.R35x_v20090827)
...
[ 180] [Active     ] [            ] [       ] [   60] Apache ServiceMix Specs :: ACTIVATION API 1.4 (1.5.0)
[ 181] [Active     ] [            ] [       ] [   60] Apache ServiceMix Specs :: JAXB API 2.1 (1.5.0)
[ 182] [Active     ] [            ] [       ] [   60] Apache ServiceMix Specs :: STAX API 1.0 (1.5.0)
[ 183] [Active     ] [            ] [       ] [   60] camel-core (2.3.0.fuse-01-00)

The steps outlined above will not work if you need to go through a proxy. One way to fix this is by adding your proxy settings in %SERVICEMIX_HOME%/bin/servicemix.bat:

set JAVA_OPTS=-Dhttp.proxyHost=host -Dhttp.proxyPort=8080 -Dhttp.proxyUser=user -Dhttp.proxyPassword=password -Dhttp.nonProxyHosts=*.local
  • Pingback: Adding a maven repository for installing features to ServiceMix :: Andrej Koelewijn

  • Deepaksbsi

    My existing code using cxf:bean:someEndPoint worked in camel 2.2. After upgrading to 2.3 as suggested here, that code started crashing with errors in camelContext instantiation. So I uninstalled camel 2.2 after installing 2.3. Now code is not crashing and debug file is showing that routes are being created.

    When using 2.2 I could see the endpoints in the browser (“http://..:8181/cxf”. That is no longer true. Has this URL changed for camel 2.3?

  • Matt

    Thank you for this. I was running into issues though where Karaf kept on bringing back 2.2.0 and removing 2.3.0. I found that if you go into '<servicemix_directory>/etc/org.apache.felix.karaf.features.cfg' and replace '2.2.0-fuse-02-00' with '2.3.0-fuse-01-00' (for the camel entry) that this will now use 2.3.0 as default. I restarted Servicemix and uninstalled all of the bundles that had 2.2.0 and re-installed the camel features and it works as expected.

Tags

activemq agile bi camel css esb google governance grails groovy gtalk html5 internet ipad ivy J2EE java javascript jaxrs jmx jquery lean linkeddata linux maven mule noiv openoffice opensource Open Source oracle osgi oss rdbms rest scrum servicemix soa sql svg tablet web 2.0 XML xmpp yql

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Posts

  • Updating a vagrant box
  • Using littleproxy in Mule unit tests
  • Useful site to determine what html5, css3 & svg you can use
  • A Product Owner is a Project Manager
  • Using css webfonts in inkscape

Categories

  • agile
  • architecture
  • cloud
  • java
  • mobile
  • open standards
  • oracle
  • oss
  • other
  • soa
  • software development
  • tablet
  • Uncategorized
  • web

Recent Comments

  • Pcdiggs on Software architecture, PHP and Javascript
  • Een Scrum Product Owner is een Project Leider on A Product Owner is a Project Manager
  • Using css webfonts in inkscape :: Andrej Koelewijn on Create presentations using inkscape
  • Create presentations using inkscape :: Andrej Koelewijn on Presentation: Introduction to Scrum
  • Gebhard Greiter on What is Agile?
Buzz
andrkoel: Utrecht hele dag mist, scheveningen zomerse dag... http://t.co/cDRCJHr9
4:35 PM Nov 10, 2011, comment
andrkoel: RT @stefanvdkamp: Beter filmpje van Garret McNamara in de 30 meter hoge golf. http://t.co/9abiWkYX
9:20 AM Nov 10, 2011, comment
andrkoel: Mmm, een uur voor den haag - leiden lijkt te weinig, ga mijn afspraak niet redden...
7:34 AM Nov 10, 2011, comment
andrkoel: Big Data is Useless without Science http://t.co/2I8EiLsH
6:18 AM Nov 10, 2011, comment
andrkoel: Just tried #vagrant to quickly setup virtualbox development environment. Looks good, although provisioning apache through puppet failed...
10:47 PM Nov 09, 2011, comment
 


©2012 Andrej Koelewijn
Powered by WordPress using the Gridline Lite theme by Graph Paper Press.