camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zappee <>
Subject Re: camel rest route
Date Tue, 23 Feb 2016 16:23:46 GMT

Thx for the reply.

Now I am facing with another strange behavior. I want to fill in my user
object with random generated data, like this:

public void configure() throws Exception { 
    User user = new User(); 
    *user.setBirthday(new Date());*

            .dataFormatProperty("prettyPrint", "true"); 
            .description("user rest service") 


But I always get the same values in all fields. For example the birthday
field is fill in with the current timestamp value during the first rest call
and same value is displayed later in the next calls:

First response:
"id": null,
"email": null,
"firstName": "Lindsey",
"lastName": "Craft",
"birthday": 1456243732376

I get the exactly same response if i call my rest in the next 5 mins. How it
is possible?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message