Tuesday, December 9, 2008

Tutorial introducing How to create, design a simple SOA solution using Camel and OSGI

After a few weeks of investigation about OSGI, I have decided to start to write a tutorial showing How we can design/create a Service Oriented Architecture using Camel in combination with OSGI standard. The first part of this tutorial has been published and next part will come soon.

Through this tutorial, the user will see how such a solution can be designed and deployed in two really interesting products : ServiceMix Kernel server (based on Apache Felix) and Spring Dynamic Server (based on Eclipse Equinox).

Link : http://cwiki.apache.org/confluence/display/CAMEL/tutorial-osgi-camel-part1


Dafang Zhang said...

Hi, Charls, this looks like an excellent tutorial! Thanks for your contributions. I'm getting my hands on to try it out. In the Step 1, when I run the following command line:

mvn archetype:create -DarchetypeGroupId=org.springframework.osgi -DarchetypeArtifactId=spring-osgi-bundle-archetype -DarchetypeVersion=1.2.0-m2
-DgroupId=demo -DartifactId=demo.service-bundle -Dversion=0.1

I got the following error message from the console:

Downloading: http://repo1.maven.org/maven2/org/springframework/osgi/spring-osgi-
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: org.apache.maven.archetype.downloader.DownloadNotFoundException:
Requested download does not exist.
Unable to download the artifact from any repository

Instead of maven-2.0.9, I'm using the latest maven-2.0.10, which I don't think it matters. Can you please post your maven settings.xml? or, do I have to manually download the spring osgi bundle 1.2.0-m2 stuff from here? - http://s3browse.com/explore/maven.springframework.org/milestone/org/springframework/osgi/spring-osgi-bundle-archetype/1.2.0-m2/

Please advise.

Dafang Zhang said...

Ok, I temporarily resolved the maven download issue by install the archetype manually to my local repo:

mvn install:install-file -DgroupId=org.springframewo
rk.osgi -DartifactId=spring-osgi-bundle-archetype -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=spring-osgi-bundle-archetype-1.2.0-m2.jar