3 Replies Latest reply on Oct 31, 2014 2:16 PM by rcernich

    Deploying to Fuse?

    magick93

      Hello

       

      Is there any documentation or tutorials on how to deploy a SY 2x application to Fuse?

       

      This would be really helpful.

       

      thanks

        • 1. Re: Deploying to Fuse?
          wsimons

          http://stackoverflow.com/questions/19912533/managing-deployments-for-nodes-running-camel-routes

          Switchyard on Karaf

           

          I do not think everything is done with switchyard for osgi/karaf

           

          anyway, I hope this helps....  

          • 2. Re: Deploying to Fuse?
            rcernich

            Hey Anton,

             

            Sorry, we're a bit behind on the documentation.  If you're using the SwitchYard Eclipse tooling to create your project, there's a new option in the new project wizard to create the project as an OSGi bundle.  This will setup the pom to produce a bundle and will also create a features.xml for your project.  As components are configured on the project, the features.xml file will be updated appropriately (e.g. dropping a soap binding onto a service will add the soap component dependency to the pom and will add a feature dependency into the features file).  After building your project (mvn install), you can simply install the feature for your project in Karaf, e.g.

             

            features:addurl mvn:com.example.switchyard/switchyard-example/0.0.1-SNAPSHOT/xml/features

            features:install switchyard-example

             

            Where the mvn uri is <groupId>/<artifactId>/<version>/xml/features (xml is the type and features is the classifier) and switchyard-example is the artifactId (i.e. the above is appropriate for the defaults in the new project wizard).

             

            Hope that helps,

            Rob

            • 3. Re: Deploying to Fuse?
              rcernich

              There's also some good information here on setting up SwitchYard on Karaf or Fuse: SwitchYard on Karaf