[appengine-java] Re: Channel API Disconnect not being hit every time.

2011-07-07 Thread ksafez216
Ya, I had (have) the same problem. It could happen when you call channel.open() on a channel that's already connected. On Jul 6, 2:54 pm, Amorgos eurigjo...@gmail.com wrote: Any views on this? Thanks On Jul 4, 9:41 am, Amorgos eurigjo...@gmail.com wrote: Hey, I have created servlet

[appengine-java] Re: Channel API Disconnect not being hit every time.

2011-07-07 Thread ksafez216
If he's getting POSTs to connected and disconnected, then I think he has already enabled the Channel Presence in the setup file On Jul 6, 5:11 pm, jMotta jayrmo...@gmail.com wrote: Amorgos, I really didn't understand what you meant. You're sending a request to those addresses and they're not

Re: [appengine-java] Why are app instances killed after 9000 requests

2011-07-07 Thread Juha K
Thank you! I didn't know about this and tried to search (also on these forums). In my production app I get instance restart every 6 minutes, that's 10 times per hour! I think I should de-optimize my code to run slower to make GAE to use more instances with my current load, so my users

[appengine-java] Specifying cache expiration

2011-07-07 Thread Vik
Hie I used PageSpeed chrome extension to analyze my app home page which is hosted on GAE. The suggestion come to set image cache expiration to 1 week at least. Now I do not know where should I do that? Please advise. Thankx and Regards Vik Founder http://www.sakshum.org

Re: [appengine-java] Specifying cache expiration

2011-07-07 Thread jMotta
Vik, Go to you administration panel Application Settings There is a combo Cookie Expiration to set how long it should keep your users logged in. If the problem isn't in this cookie, you should look into your code where you generate a cookie and set the Max Age of it to 1 week (in ms probably).

[appengine-java] Reading Blobstore data

2011-07-07 Thread Luca Matteis
Hello, I'm trying to simply read blobstore data without using the .serve() method. It seems like I can use the .fetchData() method, but the parameters needed are unclear to me and how I would generate them. I just need to read all the bytes. For example if I store a plain/text file in the

Re: [appengine-java] Reading Blobstore data

2011-07-07 Thread jMotta
Luca, The fetchData() method was designed to retrieve a fragment of a given blobstore. Also, there are limitations about how much data you want to transfer, look this http://stackoverflow.com/questions/3410886/reading-a-blobstoreinputstream-1mb-in-size *Jayr Motta* Software Developer * * I'm on

[appengine-java] Re: Specifying cache expiration

2011-07-07 Thread Vik
Tx a lot guys.. this seems to be answering me what i was looking for,. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jul 7, 2011 at 6:09 PM, Rob Coops rco...@gmail.com wrote: Have a look at the following page:

[appengine-java] Re: Errors in test with rpc, memcache and jdo

2011-07-07 Thread Drew Spencer
Is this a joke? -- 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/-/n-XWqukTTKQJ. To post to this group, send email to

Re: [appengine-java] Re: Specifying cache expiration

2011-07-07 Thread Bruno Fuster
Hi I think you need to config your static files cache using GAE's proxy like this (appengine-web.xml) static-files include path=/**.js expiration=2m/ include path=/**.css expiration=2m/ include path=/**.png expiration=2m/ include path=/**.jpg expiration=2m/

Re: [appengine-java] Email from the Google App Engine

2011-07-07 Thread David Chandler
Perhaps you can use a template with variables for user-entered content which you get from a Web form of some kind. I blogged just yesterday about sending email using a template on App Engine. Perhaps it will help:

Re: [appengine-java] Email from the Google App Engine

2011-07-07 Thread Bruno Fuster
Hi Its also very easy to create your own. A simple hashmap and regex replaces with curly brackets should do the trick. Check this sample I've made: https://gist.github.com/1069819 Create the factory methods you need and the mail template files using variables with curly brackets html bodyHi

[appengine-java] Re: how to turn off high replication simulation in SDK / development environment

2011-07-07 Thread Ronoaldo José de Lana Pereira
Check this thread: https://groups.google.com/forum/#!topic/objectify-appengine/ECNbSVgEcSQ -- 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

[appengine-java] Re: how to turn off high replication simulation in SDK / development environment

2011-07-07 Thread Tommy Fannon
thanks. that was actually me answering my own question. :) -- 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/-/I0NgipaSzNgJ. To post to

[appengine-java] datastore query access failure

2011-07-07 Thread SwaminathanG
Hello, I am trying to query the datastore from server side code But it throws an exception '500 error' even while accessing the method. But we can insert into the datastore through other method. What am i missing? public String[] getStocks() throws NotLoggedInException { checkLoggedIn();

[appengine-java] Re: Failed to compile jsp files.

2011-07-07 Thread Nichole
Looks like an error in your jsp file. On Jul 3, 8:12 am, ~Juli~ yoolc...@gmail.com wrote: Hi all! I faced with probem that i couldn't update war because jsp compilation failed. ---

[appengine-java] Re: How can I make sure a Collection of child classes gets fetched in a query?

2011-07-07 Thread Nichole
http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships entity groups and mappedBy in your parent class. On Jul 2, 1:39 pm, ksafez216 mell...@gmail.com wrote: After I get a Command object using PersistenceManager.getObjectById(), and then try

[appengine-java] Re: Scalability of inequality filters for multiple fields via Hilbert curve

2011-07-07 Thread Nichole
Since you're working with data that is presumably in entities, your fields such as long or date at any given time aren't continuous, so the algorithm to group by features should work. 'Any given time' here is the time that you actually start to write your entities that are to be your HilbertIndex

[appengine-java] Re: Facebook Federated Login

2011-07-07 Thread Nichole
Or use OpenAuth instead? On Jul 5, 10:33 pm, Shash Joshi sh...@perfode.com wrote: I have used it, and it works great! -- 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

[appengine-java] Re: Changing datastore property type

2011-07-07 Thread Nichole
The quickest solution might be to wrap your entity fetch in a try/ catch (Throwable t) block. Throwable will catch a runtime exception. Upon the expected exception, use the alternate variable type to try another fetch. On Jul 6, 1:34 pm, Jeff Schnitzer j...@infohazard.org wrote: On Wed, Jul

Re: [appengine-java] Re: JDO: how to add a child without the collection

2011-07-07 Thread objectuser
You're right. I confused the two: I said unowned while actually describing inverting the relationship. Do I get half a point? ;) -- 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

[appengine-java] Re: Changing datastore property type

2011-07-07 Thread Jamie
I am indeed using JDO so I'm kinda bummed that a simple schema change like this is causing problems. Haven't used Objectify before but it sounds like it might do what I need. I'm simply changing the type of a field/property (not part of the key) from Integer to String. The issue is I have a LOT

[appengine-java] Re: Changing datastore property type

2011-07-07 Thread Nichole
To update your existing entities to the new entity schema, you would need to rewrite your existing entities (create new w/ same fields and delete old). To find the existing older entities, you could use the low level API (DatastoreService) to fetch Entity instances for your entity Kind and then