Search code examples
javaapacheapache-servicemix

Beginner in Apache ServiceMix


Hello everyone, I started few days ago Apache ServiceMix and i cant find any good tutorial. I have a project in java and now i want to run it in ServiceMix and i dont know how to do it? I want to know too how to connect two services, first service start and another take somethink from this first? Please help me it is very important to me. My java project are in REST or SOAP and they are very easy to write: HelloWorld or take values and display result.

I m using: Apache ServiceMix 5.1.2, Java 8, 1.8 JDK, maven.


Solution

  • The good Tutorial i found is ServiceMix Tutorial

    Here are 2 examples, one JBI and one OSGI, that you can use to start you first SOAP web-service and deploy it in ServiceMix.

    JBI: http://cis.ait.asia/course_offerings/49/servicemix_tutorial_4

    I actually made the above example work and then I switched from ant to maven. If you try it and encounter any kind of problems I would be happy to help you. Please keep in mind that JBI is kind of obsolete.

    OSGI: http://www.jakubkorab.net/2012/02/developing-web-services-in-servicemix.html

    Here you will find 3 examples, one plain CXF and two with Apache Camel. The packaging is OSGI instead of JBI.