Hi lisandrodc, please carefully read all documents
http://code.google.com/appengine/docs/java/datastore/ and http://www.datanucleus.org/products/accessplatform_1_1/guides/jdo/daolayer_design.html Also many people cannot read spanish, if you would write in english you may get more answers. I think you problem is that you datastore operation failed in catch block and since you are closing persistence manager first and then rollbacking it fails. Solution: 1) read everything as carefully as possible, look at example and try experiment. 2) in finally block rollback first and then close persistence manager On Jul 18, 11:01 pm, lisandrodc <lisandr...@gmail.com> wrote: > Hi! I have a problem with active transaction.When I try to guard in > the datastore, says: > > "La transaccion esta activo todavia. Debe cerrar las transacciones > usando los metodos commit() o rollback()." > > As closure all the transactions? > The method is: > > PersistenceManager pm2 = JDOHelper.getPersistenceManager(fechaAgreg); > > Transaction tx = pm2.currentTransaction(); > > try { > tx.begin(); > Partido par1 = null; > ControladorTorneo cT= new ControladorTorneo(); > par1 = new Partido(null, new Resultado(), > cT.devolverEquipo( idTorneo,idEqLocal), > cT.devolverEquipo(idTorneo,idEqVisitante), fecha, hora); > > fechaAgreg.agregarPartido(par1); > pm2.makePersistent(fechaAgreg); > tx.commit(); > > } finally { > pm2.close(); > > if (tx.isActive()) { > tx.rollback(); > } > } > > } > > Regards -- 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.