[appengine-java] Re: Help: Memcache - not hitting at all

2011-09-11 Thread Nichole
The javadocs for MemcacheService suggest a pattern that you would use if the backing cache used soft references: foo = memcache.get("key"); if (foo == null) { if (memcache.contains("key")) { // continue, assuming foo had the real value null } else { // continue; foo may

[appengine-java] Re: Delete Lots Of Data

2011-09-11 Thread Nichole
Can use low-level datastore and iterate over batches: binSize = 1000;// or smaller if needed < 30 sec timeout DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Keys only select and delete: javax.jdo.Query q = pm.newQuery("select key from " + entityKind.getClass().g

[appengine-java] Re: Problem with URL paths in deployed version of Google App

2011-09-11 Thread Nichole
In addition to adding urls to your appengine-web.xml, if you intend "app" to be your application default "root" path, see: http://code.google.com/appengine/docs/java/config/appconfig.html#Changing_the_Root_Directory On Sep 9, 12:13 pm, wrote: > Static  file are dealt with differently on product

[appengine-java] Re: Retrieving keys involving corresponding entities in transaction

2011-09-11 Thread Nichole
Hi Mauricio, I think I need more information: What relationships do you have between your entities? For the Conversation/Comment example above I can derive something like this: === Conversation -- commentKey: Key status: String rank: Integer

[appengine-java] Re: Java OAuth API, example

2011-09-11 Thread Daniel Florey
...or are you interested in implementing an OAuth provider? Then of course it is a different story. On Sep 11, 11:12 pm, Daniel Florey wrote: > As it is not related to GAE you should check the GData docs. You'll > find all the good stuff there. > > On Sep 11, 1:56 pm, de Witte wrote: > > > > > >

[appengine-java] Re: Java OAuth API, example

2011-09-11 Thread Daniel Florey
As it is not related to GAE you should check the GData docs. You'll find all the good stuff there. On Sep 11, 1:56 pm, de Witte wrote: > Hello, > > I'm trying to find any example for the OAuth API. > > The trunk forhttp://oauthexample.appspot.com/Welcomeseems to be empty. > > http://code.google.c

[appengine-java] Re: Help: Memcache - not hitting at all

2011-09-11 Thread realdope
Here's rest of the code: public class Memcache { private static int EXPIRY = 60*60*24*30; private static final String POSTIDKEY="POSTID_"; private static boolean has(String key) { return MemcacheServiceFactory.getMemcacheService().contains(key) && get(key).length()>0;

[appengine-java] Re: URLFetch Http Method "DELETE" returns http response 400

2011-09-11 Thread Nischal
The URL is accessible. It's for the facebook graph api. Like I said, works when using Apache Http client but I need to make it work on appengine as well. This is for face4j , an open source facebook graph api java library that I have created and maintain. --

[appengine-java] Java OAuth API, example

2011-09-11 Thread de Witte
Hello, I'm trying to find any example for the OAuth API. The trunk for http://oauthexample.appspot.com/Welcome seems to be empty. http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fjava%2Fdemos%2Foauth Are there any other examples? Can google upload the code of oauthexample.

[appengine-java] Re: URLFetch Http Method "DELETE" returns http response 400

2011-09-11 Thread dreamer
status 400. HTTPRequest Bad request ? try without "DELETE " - do some simple stuff. Make sure url is accessible. http://schoolk12.appspot.com/ On Sep 5, 9:40 am, Nischal wrote: > Haven't tried it on production yet, but it isn't working in development... > Let me try and see if I get the same er

[appengine-java] Re: how appengine app out of memory

2011-09-11 Thread de Witte
The instance will throw an exception and will be killed. The error will be visible in your logs. -- 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-appe

[appengine-java] how appengine app out of memory

2011-09-11 Thread Luke
let say our code is buggy and there is memory leak. but somehow the aplication still run well. when instance of server run out of memory. will appengine auto scale it for more memory ? would be good as temporary measurement to handle such situation right? -- You received this message because y