Hi,

Thanks for sharing your solution.

Freeman
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-27, at 上午3:45, wagner wrote:

> for future reference e for someone who interest in this same subject (run
> shell scripts) with rest request:
> 
> I am describe below what are working great for me now. It is a more simple
> aprouch, but I am afraid I lost the batch feature because described by
> Jean's post.
> 
> Although Its works, in the near future I will came back here to implement
> the batch feature again and a more dinamically pattern as I am growing in
> the learning camel.
> 
> I want to register my gratitude for the help and for the patience I found in
> this this forum!
> 
> 
> 
> package br.edu.fzlbpms.template.camel.batch.impl;
> import javax.ws.rs.GET;
> import javax.ws.rs.Path;
> import javax.ws.rs.PathParam;
> import javax.ws.rs.Produces;
> 
> @Path("/")
> public class ControllerService {
> 
>  @GET
>  @Path("/start/{command}")
>  @Produces("text/plain")
>  public String startRoute(@PathParam("command") String command) throws
> Exception {
>         return null;
>  }
> }
> 
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xmlns:cxf="http://camel.apache.org/schema/cxf";
>  xsi:schemaLocation="
>    http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>    http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>    http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
>  ">
> 
> 
> 
>  <cxf:rsServer id="rsServer" address="http://localhost:9090/batch";
>       
> serviceClass="br.edu.fzlbpms.template.camel.batch.impl.ControllerService"/>
> 
> 
>  <camelContext xmlns="http://camel.apache.org/schema/spring";>
> 
>    <route id="control">
>        <from uri="cxfrs:bean:rsServer"/>
> 
>        <when>
>            <simple>${body} == 'fzl_fuseide'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_fuseide.sh"/>
>        </when>
>        <when>
>            <simple>${body} == 'fzl_open_gi'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_open_gi.sh"/>
>        </when>
>        <when>
>            <simple>${body} == 'fzl_eclipse_juno'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_eclipse_juno.sh"/>
>        </when>
>        <when>
>            <simple>${body} == 'fzl_open_birt_modeler'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_open_birt_modeler.sh"/>
>        </when>        
>        <when>
>            <simple>${body} == 'fzl_open_pror'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_open_pror.sh"/>
>        </when>                
>        <when>
>            <simple>${body} == 'fzl_start_apacheds_studio'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_start_apacheds_studio.sh"/>
>        </when>
>        <when>
>            <simple>${body} == 'fzl_jmeter'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_jmeter.sh"/>
>        </when>
>        <when>
>            <simple>${body} == 'fzl_open_soapui'</simple>
>            <to
> uri="exec:/run/media/wagner/fzlbpms_env/PROGSATIVOS/fzlbpms/bin/fzl_open_soapui.sh"/>
>        </when>
>                                                                               
>        
>    </route>
> 
>  </camelContext>
> 
> </beans>
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/how-to-intall-servicemix-exec-in-apache-servicemix-4-4-1-fuse-07-11-tp5714116p5714250.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to