camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitko Kolev (JIRA)" <>
Subject [jira] Commented: (CAMEL-2549) Camel Exec component
Date Mon, 15 Mar 2010 09:21:45 GMT


Mitko Kolev commented on CAMEL-2549:

Hi Martin,

thanks for the hint :)

with the component it possible to execute an OS command from a Camel route. 

Here is a basic example to show what this component can be used for:
<camelContext ...>
      <to uri="exec:java?args=-version&timeout=10000"/>

The route will execute the "java -version" command in the working dir of the Camel application,
and read stdout and stderr streams of the program. Additionally, if the process does not exit
within 10000 milliseconds, the implementation will send a termination request. After the execution
the stdout and stderr are stored in the message headers.

It is possible to set the working dir, timeout, and args as a list of white-space separated
tokens. Quoting of the arguments with " is also supported. 

> Camel Exec component
> --------------------
>                 Key: CAMEL-2549
>                 URL:
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 2.3.0
>         Environment: Tested on Windows XP and Linux
>            Reporter: Mitko Kolev
>            Assignee: Martin Krasser
>             Fix For: 2.3.0
>         Attachments: camel-exec-patch.diff

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message