I created a JIRA issue for this:
https://issues.apache.org/jira/browse/CAMEL-7582
Tim
--
View this message in context:
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753387.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Wouldn't executing the script in Jython be faster than firing up CPython or
similar? I know that's definitely the case with JRuby vs. the official one.
On 30 June 2014 08:21, scottdawson wrote:
> As an alternative to the language component, you can use the exec component
> (or the ssh component
As an alternative to the language component, you can use the exec component
(or the ssh component if the script is on a remote machine):
Regards,
Scott
--
View this message in context:
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753052.ht
Most of the camel-script use cases are just a simple expression, we can polish
the camel script code with your solution. Do you mind fill a JIRA[1] and submit
a patch with a test case for it?
[1]https://issues.apache.org/jira/browse/CAMEL
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat
I'm not sure on the "proper" way to do it, but what I'd do is write a
Processor or similar in Jython for more complex Python scripts.
On 29 June 2014 10:09, Tim Dudgeon wrote:
> I'd like to follow up on this as I've just hit the same issue. I know this
> thread dates from a year and a half ago,
I'd like to follow up on this as I've just hit the same issue. I know this
thread dates from a year and a half ago, but it seems unanswered.
The issue is that if you are using a Python script using the language
component, it works fine if the script is a one line piece of text. e.g.
the whole scr
I am not certain if this posted so I am reposting. Apologize if this is a
duplicate.
-
Just to experiment, I did a couple of things.
First, I changed my script from just "Hello" to this:
"Hello" + " world"
That works.
Then I tried this:
sum = 5 + 3
"Hello" + " world"
That doe
On 14 Dec 2012, at 8:47, neilac333 wrote:
> I thought about that so I tried the following:
>
> def foo():
>return "hello"
>
> foo()
>
>
> But I still get the same NPE. How do I get the result of the script to be
> passed along?
>
> Thanks.
>
>
>
> --
> View this message in context:
I just tried set the Python Script as one line like "hello".
I can get the result as you want.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(Engli
As you are just print the return value of main, I don't think you can result of
script when it is ran.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/
10 matches
Mail list logo