You may need a newer Camel version for this with simple language.

What version of Camel do you use?

You can always use a more powerful language such as groovy instead to
write code in the xml file to use.




On Fri, Apr 17, 2015 at 5:10 PM, angelo.rlcosta
<angelo.rlco...@gmail.com> wrote:
> Hi Hans,
>
> .setBody().simple("bean:java.lang.System?method=currentTimeMillis")
>
> this is what im already trying to do.
>
> Any clue on the nosuchbean issue?
>
>
> Ângelo Costa
>
> On Fri, Apr 17, 2015 at 4:07 PM, Hans Orbaan [via Camel] <
> ml-node+s465427n5765971...@n5.nabble.com> wrote:
>
>> Hi,
>>
>> Try java.lang.System
>>
>>
>> -----Oorspronkelijk bericht-----
>> Van: angelo.rlcosta [mailto:[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5765971&i=0>]
>> Verzonden: Friday 17 April 2015 16:49
>> Aan: [hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5765971&i=1>
>> Onderwerp: Re: Seconds since 1970
>>
>> Hi Guys,
>>
>> I'm doing as you told me but i am now getting a No bean could be found in
>> the registry for: java.lang:
>> org.apache.camel.NoSuchBea
>> nException: No bean could be found in the registry for: java.lang
>>
>>
>> Any idea?
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Seconds-since-1970-tp5765942p5765963.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>> http://camel.465427.n5.nabble.com/Seconds-since-1970-tp5765942p5765971.html
>>  To unsubscribe from Seconds since 1970, click here
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5765942&code=YW5nZWxvLnJsY29zdGFAZ21haWwuY29tfDU3NjU5NDJ8OTY0MzQzODU=>
>> .
>> NAML
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Seconds-since-1970-tp5765942p5765972.html
> Sent from the Camel - Users mailing list archive at Nabble.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/

Reply via email to