A side note, I don't think checking that the user exists, and if not
inserting one will perform as you expect. If you want to handle
concurrent inserts see this:
http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_For_Transactions

On Aug 27, 8:57 pm, leszek <[email protected]> wrote:
> All the code is correct and there is no any error there.  But what
> is ? :
>
>  AccountsServiceImpl as = Services.get().getService
> ( AccountsServiceImpl.class);
>
> If you use some kind of 'ServiceLocator' to retrieve a service you
> should use an interface, not concrete class. It does not make any
> sense for me to do that if you have an implementation at hand. May be
> you persist your "User" in one datastore and try to authenticate using
> another datastore ?
> The problem is not with the code itself, it is related to something
> outside the code.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to