[appengine-java] Re: Prerelease SDK 1.5.5 available for download!

2011-10-03 Thread Jay Young
Holy crap! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/sGNjx_rosygJ. To post to this group, send email to google-appengine-java@g

[appengine-java] Re: Building Session affinity manually

2011-06-26 Thread Jay Young
There's nothing you can do to affect which request goes to which instance. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/XKpUIjxHBW

[appengine-java] Re: 1.5.1 SDK Prerelease

2011-06-19 Thread Jay Young
Just downloaded the new "appengine-java-sdk-1.5.1_prerelease.zip" and ran the dev_appserver, only to receive the following exception. The Jetty server starts up as expected, but will only serve 503s. WARNING: Failed startup of context com.google.apphosting.utils.jetty.DevAppEngineWebAppContext

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jay Young
When frameworks compete, everyone wins! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/3zCQizDuxPIJ. To post to this group, send ema

[appengine-java] Entity.getKey() reliable for gets?

2011-06-05 Thread Jay Young
In the Javadoc for Entity.getKey(), it says: If the entity has not yet been saved (e.g. via DatastoreService.put), this Key will not be fully specified and cannot be used for certain operations (like DatastoreService.get). Once the Entity has been saved, its Key will be updated to be fully spec

[appengine-java] Re: New GWT/App Engine site

2011-05-31 Thread Jay Young
Cool idea, but I think you might want to look into GWT's code splitting. It took me 35 seconds to download your 2.11MB file. That's going to turn off a LOT of users. I understand that that file gets cached, but that's not going to be the case on their first trip to your site. -- You receive

[appengine-java] Re: Combine getIdentifiable with get?

2011-04-28 Thread Jay Young
According to the JavaDoc, the IdentifiableValue interface includes a getValue() method which returns the value as an Object: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.IdentifiableValue.html IdentifiableValue idVal = memcache.getIdentifia

[appengine-java] Re: Best Practice for Java Datastore API

2011-04-21 Thread Jay Young
For me, it's still been beneficial to use a model-like class just like you would for JDO and JPA and make all of your data store calls within these classes, and make sure the methods that perform writes enforce the invariants. I'm doing this in Javascript, even, and I've never had an issue wit

[appengine-java] Re: 1.4.3 Javadocs? Looking for the FileServiceFactory docs:

2011-04-03 Thread Jay Young
On Sunday, April 3, 2011 12:59:23 PM UTC-4, Mitch Rudominer wrote: > > I will look into posting it somewhere temporarily. files-javadoc.appspot.com? :-) -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, sen

[appengine-java] Re: Tips/Pitfalls for total newbies?

2011-04-01 Thread Jay Young
Watch all of the App Engine videos from 2008, specifically the following (yes, they pre-date Java support on App Engine, but most of the principles apply): https://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine https://sites.google.com/site/io/under-the-covers-

Re: [appengine-java] Re: GAE on Mac OS X not working on local Jetty

2011-03-30 Thread Jay Young
I just upgraded to the 1.4.3 SDK and re-installed the Mac OS X Java Update 4. Everything seems to be working as before. Thanks for the fix! -- 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 goo

Re: [appengine-java] Task Enqueue in a Transaction

2011-03-22 Thread Jay Young
According to the docs, gets, puts, deletes, and ancestor queries are all strongly consistent: http://code.google.com/appengine/docs/java/datastore/hr/ -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send ema

[appengine-java] Re: New Mac Java Update, Now Dev Server Stops After ACK Running

2011-03-16 Thread Jay Young
https://groups.google.com/forum/#!topic/google-appengine-java/WiImnzVb9Fo -- 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-java@googlegroups.com. To unsubscribe from this group,

[appengine-java] Re: Development AppEngine server quits with no warnings.

2011-03-15 Thread Jay Young
http://code.google.com/p/googleappengine/issues/detail?id=4712 Check comment #39 for a work-around. On Tuesday, March 15, 2011 2:09:44 PM UTC-4, Cyrille Vincey wrote: > > +1... 2 days lost. Arghhh. -- You received this message bec

[appengine-java] Re: suggestions on template engine for GAE-java

2011-03-15 Thread Jay Young
http://code.google.com/closure/templates/ Google doesn't push their Closure Tools very hard, but I've had a lot of success with their templating engine. Take a look at the docs. It's not Django/PHP/JSP style templating, so it does take a bit of re-learning. That said, there are a lot of bene

[appengine-java] Re: App Engine plugin (Java) for Eclipse terminates unexpectedly

2011-03-15 Thread Jay Young
There is an issue with the JVM in Apple's release. See the thread and issue linked below. I recommend the solution posted in Comment #39 on the issue tracker. Thread: https://groups.google.com/forum/#!topic/google-appengine-java/WiImnzVb9Fo Issue: http://code.google.com/p/googleappengine/is

[appengine-java] Re: Why does google set quotas on their API calls?

2011-03-14 Thread Jay Young
Because when you do image transformations, you are sending an API to another piece of Google's infrastructure, which I would assume is highly optimized for doing such things. If you do it in your own code, you'll probably pay more in CPU cost than you would for the API call. If it's just a mat

[appengine-java] Re: Weird performance problem last 3 days or so

2011-03-10 Thread Jay Young
Might the difference between your foo and bar deployments be the size of the data set you have for each app? If the fresh install is consistently fine and the old one is consistently slow, maybe you've hit a threshold where some inefficiency in your queries or data handling has started to actua

[appengine-java] Re: Development AppEngine server quits with no warnings.

2011-03-09 Thread Jay Young
Created an issue for this: http://code.google.com/p/googleappengine/issues/detail?id=4712 -- 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-java@googlegroups.com. To unsubscribe

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Jay Young
I dunno about this. The different JVM language runtimes (JRuby, Rhino, Groovy, etc) all generate and run bytecode on the fly. I don't know if you can cache that generated byte code and re-execute it later, though that seems like it'd be a shortcoming of the interpreter, not the App Engine env

[appengine-java] Re: Can we use Java Development Server in production mode

2011-03-01 Thread Jay Young
Rick, now that I think of it, the Java dev_appserver is based on Jetty, which is multi-threaded. I was thinking of the python server (at least I'm pretty sure I'd heard that). Toby was absolutely right. -- You received this message because you are subscribed to the Google Groups "Google App

[appengine-java] Re: Can we use Java Development Server in production mode

2011-03-01 Thread Jay Young
Googlers have said many times that you should not use the dev server for production. Among other things, It is single-threaded, so you don't get concurrent request handling, and it is not hardened for security. -- You received this message because you are subscribed to the Google Groups "Goog

[appengine-java] Re: openId with user service redirection clarification

2011-02-26 Thread Jay Young
If the login page is in the pop-up, then the pop-up window is being re-directed, not the main window. -- 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-java@googlegroups.com. To

[appengine-java] Re: How to produce a synchronized timestamp?

2011-02-06 Thread Jay Young
Brett Slatkin: "...clocks aren't in sync. It doesn't work like that. Even with NTP it doesn't work like that. I saw a server the other day it was 40 minutes off." http://www.google.com/events/io/2010/sessions/high-throughput-data-pipelines-appengine.html -- You received this message becaus

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-15 Thread Jay Young
On Dec 15, 10:50 am, Simon wrote: > although I'd argue that > you should be changing your design anyway since synchronizing across a > distributed architecture for a lot of threads is just unadvisable. No doubt. I was simply commenting on the method in question. -- You received this message be

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-15 Thread Jay Young
> >         return lockAcquired; >     } > >     public static void releaseLock() { >         decrement(); >     } > >     private static void decrement() { >         MemcacheServiceFactory.getMemcacheService().increment("LOCK", > -1, 0L); >     } > >     private static Long increment(

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-15 Thread Jay Young
On Dec 15, 8:23 am, Simon wrote: > since I'm > assuming it takes x-amount of time for the changes in MemCache to > propagate throughout the instances.  I may be wrong in this assumption > however. I don't think cache data is propagated to the various app instances. It resides in its own central (

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-14 Thread Jay Young
(true/false), but the lock > reading wasn't safe. > Thanks! > > On 14 December 2010 20:57, Jay Young wrote: > > > > > > > > > Except return lockIndex should just be return true. > > > -- > > You received this message because you are subscrib

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-14 Thread Jay Young
Except return lockIndex should just be return true. -- 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] Re: Synchronized reads/writes on a memcache variable

2010-12-14 Thread Jay Young
Would this work? Just call getLock() in a while(! getLock()) {} loop until you get it. boolean getLock() { String lockIndex = "LockIndex" + MemcacheService.increment("descriptiveLockName", 1, 0); MemcacheService.put("DescriptiveLockName", lockIndex, null, MemcacheService.SetPolicy.A