Sorry, I would to say that I understand both comments because I've test all the posible options. Here is my source code, look that I have to comment pm.close(), to do a number of calls to createUser. Can you help, please?
Thanks. public UserInfo createUser(String fullname, String address, String city, String state, String zip) throws DAOException { UserInfo user = new UserInfo(fullname, address, city, state, zip); Transaction transaction = null; PersistenceManager pManager = null; try { // Obtain a Persistence Manager from the Factory Object // pManager = pManagerFactory.getPersistenceManager(); pManager = PersistenceManagerHelper.getPersistenceManager(); // Retrieve a Transaction object from the Persistence Manager transaction = pManager.currentTransaction(); // Begin a transaction transaction.begin(); // Persist the object pManager.makePersistent(user); // Commit the transaction transaction.commit(); } catch (Exception e) { if (transaction != null) { // Rollback the transaction transaction.rollback(); } e.printStackTrace(); } finally { // Close the Persistence Manager if (pManager != null) { // pManager.close(); } } return user; } Cheers. Andrés Cerezo. 2010/7/12 boustanihani <boustanih...@googlemail.com> > You can't agree with all the comments because there are > contradictions. It is possible to agree with some of them but not all > of them! > > Did u try calling pm.commit() after calling makePersistent() ? > > -- > 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...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- 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...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.