Leszek, thanks much!

On Nov 9, 11:20 am, Diana Cruise <[email protected]> wrote:
> WSouza, what scenario triggers UnknownException?
>
> On Nov 9, 3:24 am, leszek <[email protected]> wrote:
>
>
>
> >http://code.google.com/intl/pl/appengine/docs/java/datastore/transact...
>
> > ====================
> >         for (int i = 0; i < NUM_RETRIES; i++) {
> >             pm.currentTransaction().begin();
>
> >             ClubMembers members = pm.getObjectById(ClubMembers.class,
> > "k12345");
> >             members.incrementCounterBy(1);
>
> >             try {
> >                 pm.currentTransaction().commit();
> >                 break;
>
> >             } catch (JDOCanRetryException ex) {
> >                 if (i == (NUM_RETRIES - 1)) {
> >                     throw ex;
> >                 }
> >             }
> >         }
> > ========================- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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