[appengine-java] AppEngine does not shut down application gracefully

2010-05-27 Thread dmitrygusev
Hi, I wrote a simple servlet to count application instances GAE allocates to serve my application. Here is the code: public class ApplicationInstancesCounterServlet extends HttpServlet { private static MemcacheService memcacheService; @Override public void init() throws

[appengine-java] Re: Bulkupload int key?

2010-05-27 Thread charming30
Hi.. The Bulkloader works really smooth for me... but I have some important questions. I have downloaded data from a GAE/Python App which I wish to use in a GAE/Java App. I am having trouble with converting Entities with String Keys (python) to Entities with Long as Keys (java). My Questions:

[appengine-java] RemoteVersionFactory

2010-05-27 Thread Marcel Overdijk
Yesterday I had the bad luck my internet connection was not working. While starting up App Engine dev server ik took more than 1 minut to startup and it gave me the following exception: May 26, 2010 8:26:01 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion INFO: Unable to access

[appengine-java] Re: AppEngine does not shut down application gracefully

2010-05-27 Thread Peter Ondruska
It does not say in docs (yet, maybe an issue should be raised on this) but Google's statement regarding destroy: http://groups.google.com/group/google-appengine-java/browse_thread/thread/e18a454a1479b14a/b011dfa9a17c18c5 On May 27, 8:08 am, dmitrygusev dmitry.gu...@gmail.com wrote: Hi, I wrote

Re: [appengine-java] Re: session management

2010-05-27 Thread romesh soni
Hi Keremonal, As my practice I don't depend on Cookies for session management, because if cookie is disabled at client browser then you will always get a new session id and your data which was previously stored in session gets lost. As I think _ahsession is a very good thing for session mgmt. The

[appengine-java] Re: AppEngine does not shut down application gracefully

2010-05-27 Thread Peter Ondruska
Actually there is an issue already destroy() is never called by the servlet container http://code.google.com/p/googleappengine/issues/detail?id=2164 so just star it to get the docs fixed. On May 27, 8:08 am, dmitrygusev dmitry.gu...@gmail.com wrote: Hi, I wrote a simple servlet to count

Re: [appengine-java] Re: session management

2010-05-27 Thread romesh soni
Cookies are the most suitable thing for the remember me functionality best works. Because sessions end with the end of browser window and cookies still survive (if specified long life) Romesh On Thu, May 27, 2010 at 1:28 PM, lembas keremo...@gmail.com wrote: thanks romesh. I was on vacation

[appengine-java] system properties

2010-05-27 Thread Marcel Overdijk
Is it possible to define system properties in the admin console? I'm creating a small application of which the source code will be available in public github. I'm using twitter username + password to send tweets to twitter. As the sources are in public github repo I like to define this

[appengine-java] Re: AppEngine session advice

2010-05-27 Thread Ice13ill
Well, for me it's kinda strange, because i think i don't really understand what's going on... Let's say I want to get all my documents using gdata for docs list (just an example). So, first I call getUserCredentials() (which makes a query to datastore to get parameters: 31 ms) then an url_fetch

Re: [appengine-java] system properties

2010-05-27 Thread John Patterson
You can use the datastore to put and get config values and use the admin console to change them live. On 27 May 2010, at 15:49, Marcel Overdijk wrote: Is it possible to define system properties in the admin console? I'm creating a small application of which the source code will be available

[appengine-java] Billing is enabled but still NoClassDefFoundError with BlobstoreService

2010-05-27 Thread Dimedrol
Hello! I want to use BlobstoreService to upload and store some files. I have uploaded my simple app (made from GAE sample) and got NoClassDefFoundError. It's ok. But even after I have enabled the billing, I keep recieving this error. I even try to redeploy my app with minor changes. No luck.

[appengine-java] Logging during JUnit tests in NetBeans with the GAE plugin

2010-05-27 Thread Ken
Logging works fine in the production environment. I put my logging.properties file in the right place and told GAE where to find it and all is fine. Now, when I try to use the same logging.properties file during my JUnit tests it is completely ignored. I'm not sure how to tell ant to use it.

Re: [appengine-java] system properties

2010-05-27 Thread Pieter Coucke
You can also put them in appengine-web.xml and add a note to install.txt http://code.google.com/intl/nl-BE/appengine/docs/java/config/appconfig.html#System_Properties_and_Environment_Variables -- Pieter Coucke Onthoo BVBA http://www.onthoo.com http://www.koopjeszoeker.be -- You received this

Re: [appengine-java] system properties

2010-05-27 Thread Viðar Svansson
A little off topic, On Thu, May 27, 2010 at 8:49 AM, Marcel Overdijk marceloverd...@gmail.com wrote: I'm using  twitter username + password to send tweets to twitter. As the sources are in public github repo I like to define this username/password not in source code. Is this possible? You

[appengine-java] Re: MemCache expiring around once a day - UPDATE

2010-05-27 Thread Rahul
Surprisingly, My cache has removed some elements from it overnite and the number of elements left are few elements in the cache, is there any specific reason you can think of. Its not completely empty now. Can this happen. Thanks, Rahul On May 26, 10:27 pm, Rahul rahul.jun...@gmail.com wrote:

[appengine-java] What can cause extremely slow ‘me rge’ operations in Google app-engine (JPA)?

2010-05-27 Thread Syavash
Hi, I'm using JPA on Google app-engine datastore and some of the 'merge' operations are extremely slow. One of them usually takes more that 16 seconds. What can cause this? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] How to resolve -- java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details.

2010-05-27 Thread Sachin Patel
package com.google.gwt.deckservice.server; import java.util.ArrayList; import java.util.Map; import java.util.Properties; import com.google.gwt.deckservice.client.xmlHpppmData; import com.google.gwt.deckservice.client.xmlHpppmService; import com.google.gwt.user.server.rpc.RemoteServiceServlet;

[appengine-java] Regarding Using Quartz Scheduler

2010-05-27 Thread Arun kutty
Does Quartz scheduler work with Google App Engine. Google App Engine uses Jetty . I am not sure if this is the issue that is causing the problem or it is because Google App engine has no support for Quartz: I get the following error: org/slf4j/LoggerFactory Caused by:

[appengine-java] Storing a web based file in the blobstore

2010-05-27 Thread kldaniels
Is there a way to take a web based file and upload it into the blobstore, without a user doing it manually. I am trying to grab a .pdf file from a website and store it in the blobstore. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

Re: [appengine-java] Re: session management

2010-05-27 Thread Stephan Hartmann
Keep in mind that sessions managed by the servlet container expire after a specific time of inactivity on the server side, so if a user comes back after a while with his old session cookie, he will still get a new session. According to the servlet spec, you can obtain this value with

[appengine-java] Re: Storing a web based file in the blobstore

2010-05-27 Thread Erich
I'm looking for a solution to this too. It seems the only way to get any file into the blobstore is manually. On May 27, 1:04 pm, kldaniels kendani...@gmail.com wrote: Is there a way to take a web based file and upload it into the blobstore, without a user doing it manually. I am trying to

[appengine-java] estimated number of entries in memcache

2010-05-27 Thread Joe Fawzy
Hi all i know that memcache is documented as an unreliable storage that means that nothing is guarenteed BUT i am asking about your experience using it i have a service with a public api , i want to monitor usage of this api by each user, obvious i cannot go to the datastore on every request to

Re: [appengine-java] Re: MemCache expiring around once a day - Cache Flushing

2010-05-27 Thread Rahul Juneja
It looks like it is removing the least recently used attributes from the cache. My datastore only had 20 elements key/ value pairs and appengine is flushing some of the least recently used out of those and now only 14 are available in cache. Is there some attribute which i need to set so that i

[appengine-java] Re: estimated number of entries in memcache

2010-05-27 Thread Rahul
I would not rely as it is flushing least recently used items very frequently even if the cache is very small. I have kind of same problem and have posted question on this forum about that. MemCache expiring around once a day and yes it was wrong about once a day instead any time very frequently.

[appengine-java] full text search tutorial wanted

2010-05-27 Thread king
I need your help. I am building a prototype to index text documents for my school. The students will upload their paper through browser and my gae apps is supposed to index them and make them searchable. Is lucene the best solution on GAE? If so, could you show me a very simple (WITHOUT

Re: [appengine-java] Re: MemCache expiring around once a day - Cache Flushing

2010-05-27 Thread Jeff Schnitzer
This is the nature of memcache; you're sharing it with all the other users of appengine. Memory pressure will eventually push your inactive values out of the cache. Jeff On Thu, May 27, 2010 at 1:17 PM, Rahul Juneja rahul.jun...@gmail.com wrote: It looks like it is removing the least recently

[appengine-java] Re: Email Sending Limits Question

2010-05-27 Thread kghate
anyone? On May 21, 11:20 am, kghate kgh...@gmail.com wrote: My application sends email on behalf of users who are always logged in via their Google Accounts. All emails get sent using the logged in user's email address in the From field. This is working fine. I have these crucial open

[appengine-java] Re: AppEngine session advice

2010-05-27 Thread Mike
It might be helpful to see the entire trace for a series of runs. Is the app only slow after a period of not being used? If so, have you looked into the possibility that the app is being swapped out, and so the JVM is being re-created and spun up for the next call? On May 27, 4:20 am, Ice13ill

Re: [appengine-java] full text search tutorial wanted

2010-05-27 Thread nicolas melendez
Due to GAE limitations, fulltext search isn't a easy task. you can see this code of a basic fulltext search for JDO here:

Re: [appengine-java] Re: AppEngine session advice

2010-05-27 Thread Andrei Cosmin Fifiiţă
Well the sequence described was run a few times... enough to say that i can recreate it: as u said, this pb appears after 3-4 maybe 5 min of not using the app. But if what you said is happening... how can I resolve this issue ? On 28 May 2010 00:37, Mike m...@westforkconsulting.com wrote: It

[appengine-java] Re: Logging

2010-05-27 Thread Adligo
Hi Justin, I wrote a logging impl for GWT (also works on J2ME), If you need more help than is available on the message group email me at; sc...@adligo.com Thanks, Scott On May 24, 6:21 pm, Justin Lee justin.lee...@gmail.com wrote: Hello, I'm trying to configure my logging.properties file

[appengine-java] Low-level datastore api - query by key property

2010-05-27 Thread keyurva
I'm using the low-level datastore api and I want to query by the key property and another property (let's call it category). So the query filter would be: __key__ IN [k1, k2, ..., kn] and category=foo I need to query based on a list of keys for which I'll use the IN operator. I know that the max.