Hi Yeah the JDK/JVM comes with a few languages out of the box such as javascript. For python you would need to install a java scripting engine that supports python - which would be jython in this case.
For example for testing camel-script we use <dependency> <groupId>org.python</groupId> <artifactId>jython</artifactId> <version>${jython-version}</version> <scope>test</scope> </dependency> But when you use OSGi then discovering and loading those java script engines gets tricker as that would have to support OSGi which some do not. Or its tricky to get working. Also you gotta ask yourself what is the use case as with jython you can just call a bit of python script. Can't you just use java or javascript / groovy etc instead? On Thu, Sep 4, 2014 at 4:03 AM, Matt Sicker <boa...@gmail.com> wrote: > You need Jython, though I wasn't able to get it working in Karaf either. > > > On 3 September 2014 12:39, jwblackw <jamesblackw...@gmail.com> wrote: > >> Hi. I am trying to get the scripting languages working in a camel route >> like >> this: >> >> For Groovy: >> <choice> >> <when> >> <groovy>true</groovy> >> <to uri"file:/usr/local/jimmy/B"/> >> </when> >> <otherwise> >> <to uri"file:/usr/local/jimmy/C"/> >> </otherwise> >> </choice> >> >> For Python: >> <choice> >> <when> >> <python>true</python> >> <to uri"file:/usr/local/jimmy/B"/> >> </when> >> <otherwise> >> <to uri"file:/usr/local/jimmy/C"/> >> </otherwise> >> </choice> >> >> I have camel-groovy imported into Karaf and the groovy example works. >> There is no camel-python to import, so I can't get the python example >> working. >> Claus has suggested that I "need to install some python osgi library" >> Does anyone know which one? >> >> I have tried camel-script, but it does nothing. >> It seems to be just interfaces, no actual implementations. >> >> Can someone take 15 minutes and try to get a python example working in >> camel. >> I don't think it can be done. >> >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/I-need-to-install-some-python-osgi-library-tp5756021.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > Matt Sicker <boa...@gmail.com> -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/