Re: [appengine-java] Re: session management

2010-05-27 Thread romesh soni
Hi Stephan, Is that possible that a client had closed the browser and opens a new browser and we can still identify the client using session cookies? Thanks Romesh On Thu, May 27, 2010 at 10:42 PM, Stephan Hartmann wrote: > Keep in mind that sessions managed by the servlet container expire afte

[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.

[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 wrote: > Hello, > > I'm trying to configure my logging.properties file to use a pattern. >

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 wrote: > It might be helpful to see the

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: http://googleappengine.blogspot.com/2010/04/making-your-app-searchable-using-self.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+GoogleAppEngineBlog+(Google+App+E

[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

[appengine-java] Re: Email Sending Limits Question

2010-05-27 Thread kghate
anyone? On May 21, 11:20 am, kghate 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 questions around

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 wrote: > It looks like it is removing the least recently used attributes from t

[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 struts2,

[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 frequentl

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 do

[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 up

[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 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 grab a .pdf file fr

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 HttpSession.ge

[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" gro

[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: java.lang.NoClassDefFoundEr

[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] 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] 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 wrote: > It looks like that i h

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 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 do realize that you w

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 me

[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. I'

[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. Stil

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] 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 (fo

[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 username/

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 wrote: > thanks romesh. I was on vacation did not see your mes

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 wrote: > Hi, I wrote a simple servlet to count application instances GAE >

[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 wrote: > Hi, I wrote a simple servlet to co

[appengine-java] Re: session management

2010-05-27 Thread lembas
thanks romesh. I was on vacation did not see your message. sorry for a late answer. I do not "use cookies for managing session". Google does. JESSIONID cookies is created on server by App Engine anyway. I just extend its expiration date. Is it possible to implement "remember me" functionality with