[ https://issues.apache.org/activemq/browse/CAMEL-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58242#action_58242 ]
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 ...> <route> ... <to uri="exec:java?args=-version&timeout=10000"/> ... </route> </camelContext> 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: https://issues.apache.org/activemq/browse/CAMEL-2549 > 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.