You're assuming that your code is only running on one machine. GAE is
a distributed system.
On Jul 1, 12:35 pm, Ravi Sharma wrote:
> The fields are static and the chunk of code I also static, so time
> will be same for all the instances of that class.
--~--~-~--~~~-
Hi Sylvain,
As I said in my original email, there's currently no way to do this,
other than your suggested method of checking file modification times.
-Nick Johnson
On Mon, Jun 29, 2009 at 11:18 PM, Sylvain wrote:
>
> Currently : no answer.
> We have to wait.
>
> On 29 juin, 16:27, Mariano Beni
The fields are static and the chunk of code I also static, so time
will be same for all the instances of that class.
I see only two problems here
1) as GAE do not allow load on starup so you need to make a call to
some servlet which will atleast access this class. So the first time
this class will
That will tell you when a particular instance was started, but there's
no guarantee any request will hit an existing instance. It won't tell
you anything at all about when you deployed.
On Jun 30, 5:20 pm, Ravi Sharma wrote:
> what about using this code in any of your class
>
> public static Da
what about using this code in any of your class
public static Data deployTime;
static
{
deployTime = new Date();
}
I think after redeployment, server will reload your classes, and the above
code will execute first time the class reloaded. I think currently in
web.xml google app server dont suppo
Currently : no answer.
We have to wait.
On 29 juin, 16:27, Mariano Benitez wrote:
> thanks sylvain, did you got any answer from google? at least an
> unsupported way of getting it? it's that or running some script in my
> machine just before uploading to set the current date in a file...
> have
thanks sylvain, did you got any answer from google? at least an
unsupported way of getting it? it's that or running some script in my
machine just before uploading to set the current date in a file...
have you got any workaround?
Regards,
On Jun 29, 5:13 am, Sylvain wrote:
> star this :http://c
star this : http://code.google.com/p/googleappengine/issues/detail?id=952
On 29 juin, 03:58, Mariano Benitez wrote:
> Hello,
>
> I want to use the version deploy time as my sitemap last modified
> date. The fact is that I don't find a way to do it.
> I know that the CURRENT_VERSION_ID variable h