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>

Reply via email to