Hi,

Perhaps not directly related to your question. But java.util.Date is mostly
deprecated and it is advised to use Calendar API. I believe that is
synchronized.


Thanks
Hari

2010/7/22 Ikai L (Google) <ika...@google.com>

> It should just be whatever the date is on the current instance. In general,
> do not ever rely on dates to be synchronized. Clock skew is a reality of
> distributed computing, and you'll have to work around it. What exactly is
> the problem you're trying to solve?
>
>
> On Sun, Jul 18, 2010 at 11:23 PM, Marcus Brody <mhrab...@gmail.com> wrote:
>
>> Good day,
>>
>> I would like to ask about following.
>>
>> How is java.util.Date synchronized in case there is more than 1
>> instance of my web application.
>> Example:
>>
>> WebAppInstance01 : I create somewhere new Date()
>>
>> at the same time
>> WebAppInstance02: I create somewhere  new Date()
>>
>> Is there some time shift ? Or those both app request some "central
>> authority" ?
>>
>> Thank you,
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog: http://googleappengine.blogspot.com
> Twitter: http://twitter.com/app_engine
> Reddit: http://www.reddit.com/r/appengine
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to