[appengine-java] Re: Mail Service - get User which belongs to email address

2010-07-26 Thread David Sowerby
hi Lars Would this help you/ http://code.google.com/appengine/docs/java/users/ On Jul 26, 10:19 pm, vogella wrote: > Hi, > > I have a small Todo application written. I would like to use the Mail > service to receive new todos items via email. > > I can get the sender of the email via getFrom()

[appengine-java] Re: Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-26 Thread Marcus Brody
Hello, I am sorry for my late answer. I am trying to implement kind of authorization system to access certain service. This service is only available for example X times per Y seconds (x = 5, y = 60 * 15) each request to this service is identified by uniqueID so I know who is asking the service

[appengine-java] Re: Dance Dance Robot error / Channel API

2010-07-26 Thread GoSharp Lite
Thanks, Don. It works like a charm after I include below line in html. On Jul 26, 11:03 pm, Don Schwarz wrote: > Yes, this feature isn't launched in the production server yet. > > You can try it out in the 1.3.5 DevAppServer, but it requires a slightly > workaround: > > Extract the "apphosting/t

[appengine-java] Mail Service - get User which belongs to email address

2010-07-26 Thread vogella
Hi, I have a small Todo application written. I would like to use the Mail service to receive new todos items via email. I can get the sender of the email via getFrom() and would like to map this to the user in my application and create a new Todo for this user. Is it possible to retrieve the use

[appengine-java] Re: Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
Thanks for the update Jake. On Jul 26, 8:24 pm, Jake wrote: > Hey, > > Yes, sessions are stored in the datastore, make use of the memcache, > and behave as expected regardless of which instances are serving your > user.  However, you still face the same 1MB limit and this system, > obviously, onl

Re: [appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread John Patterson
On 27 Jul 2010, at 00:24, Bill wrote: This would completely disregard my business model. A Domain is not an Element, nor vice-versa. It's something analogous to making both classes Elephant and Corn implement the same interface because both have Ears. Ha ha well you would not actually need t

[appengine-java] Re: Instance startup/shutdown and sessions

2010-07-26 Thread Jake
Hey, Yes, sessions are stored in the datastore, make use of the memcache, and behave as expected regardless of which instances are serving your user. However, you still face the same 1MB limit and this system, obviously, only applies to values saved in the session; any class or application variab

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread Bill
Hi John, > Are all Element "trees" in the same domain? Yes they are. > If so then you could make   > Domain implement Element and use it as the root of an element   > hierarchy. This would completely disregard my business model. A Domain is not an Element, nor vice-versa. It's something anal

[appengine-java] Discussion on will-it-play-in-app-engine

2010-07-26 Thread Jon Lorusso
It is misleading to suggest DWR 3.0RC1 is fully compatible with google app engine. See here: http://groups.google.com/group/google-appengine-java/browse_thread/thread/8db782c90827d825?pli=1 and here: http://old.nabble.com/DWR3RC1-threads-to23074328.html#a23074328 for more info -- You received th

[appengine-java] Re: Is possible a query inside an arrayList?

2010-07-26 Thread salvatore
Sorry...i have posted multiple times same content. My mistake. On 26 Lug, 17:08, salvatore wrote: > :-( > As you can see here > > http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/goo... > Gae low level API don't support, query.setParameter(...) > there are some other solutions? >

[appengine-java] Re: Is possible a query inside an arrayList?

2010-07-26 Thread salvatore
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu wrote: > Of course

[appengine-java] Re: Is possible a query inside an arrayList?

2010-07-26 Thread salvatore
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu wrote: > Of course

[appengine-java] Re: Is possible a query inside an arrayList?

2010-07-26 Thread salvatore
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu wrote: > Of course

Re: [appengine-java] Re: Dance Dance Robot error / Channel API

2010-07-26 Thread Don Schwarz
Yes, this feature isn't launched in the production server yet. You can try it out in the 1.3.5 DevAppServer, but it requires a slightly workaround: Extract the "apphosting/tools/dev-channel-js.js" file from appengine-api-1.0-sdk-1.3.5.jar and move it to /_ah/channel/jsapi in your war directory (a

Re: [appengine-java] Channel api / Dance dance robot: what is ApplicationError: 2:

2010-07-26 Thread Don Schwarz
The Channel API is not yet publicly launched. However, most of the DevAppServer support was in 1.3.5. Here's a workaround if you want to test it out: Extract the "apphosting/tools/dev-channel-js.js" file from appengine-api-1.0-sdk-1.3.5.jar and move it to /_ah/channel/jsapi in your war directory

Re: [appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread John Patterson
On 26 Jul 2010, at 19:21, Bill wrote: Good thought, but unforunately Elements already have a parent key in this manner. Elements are hierarchical, so that an Element's parent is another parent. Can an entity have more than one parent? I haven't tried that... An Entity can only have one pa

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread l.denardo
I think it's not possible to have more than one parent entity. I'm sure this is not possible using Keys, I don't know if it's the case for Strings but I think the same applies there. Adding another parent to the code shown (which should work) results in an exception using datastore Keys. I think

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread Bill
* should read, "Elements are hierarchical, so that an Element's parent is another Element, or else it is a root." -- 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...@googlegro

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread Bill
Good thought, but unforunately Elements already have a parent key in this manner. Elements are hierarchical, so that an Element's parent is another parent. Can an entity have more than one parent? I haven't tried that... For more reference, here are all the fields that might be of interest to

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread l.denardo
Well, this is one of the major (maybe THE) drawback in appengine...apps architecture must be designed for the platform much more than with other kind of solutions. Thinking a bit more about the original problem, there's a simple solution for all: you can simply put your Domain Key in each element,

[appengine-java] Re: Reading blobs larger an 1MB

2010-07-26 Thread jacek.ambroziak
You need to read your Blob's content in several chunks that are no larger than the limit. Combining this with XML file compression can also make sense. On Jul 25, 9:07 pm, korey_sed wrote: > I am stumped.  No matter what API call I try to read a large blob, I > get the following: > > Caused by: c

[appengine-java] Re: getting a java.lang.NullPointerException when running example query code on datastore

2010-07-26 Thread Bill
Hi Fixou, Try replacing this line: Query query = Device.getPersistenceManager().newQuery(sqlFetchAll); with this: Query query = Device.getPersistenceManager().newQuery(Device.class); eliminating the "String sqlFetchAll" line. I use this approach and it works for me. On Jul 25, 3:23 pm, Fixo

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread Bill
Hi Lorenzo, Certainly, this would work from a technical perspective. However, it is absolutely not right for the problem. For a variety of reasons, Domain and Element need to have a completely unowned relationship. I'll explain some of my high-level situation: The Domain will be administered b

[appengine-java] Re: Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
So GAE makes sure the preserve session data between shutting down/ starting up instances. Nice. On Jul 26, 12:44 pm, Shawn Brown wrote: > > What happens if between logged in user navigates to another page and > > the GAE instance was shutdown? > > I understand a new instance is started but what

Re: [appengine-java] Instance startup/shutdown and sessions

2010-07-26 Thread Shawn Brown
> What happens if between logged in user navigates to another page and > the GAE instance was shutdown? > I understand a new instance is started but what happened to the > session data? AFAIK session data is persisted to big table. > Also, how is startup/shutdown of instances related to session-t

[appengine-java] Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
I like to store the logged in user (custom; not Google User Api) of my app in the session. What happens if between logged in user navigates to another page and the GAE instance was shutdown? I understand a new instance is started but what happened to the session data? Also, how is startup/shutdow

[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread l.denardo
As far as I know there are two possible solutions: *Review the architecture inserting Elements as a list property of your domain, something like @PersistenceCapable class Domain{ private ArrayList elements; } This works correctly and you get the benefit to have a cascasing delete on elements w