PersistenceManagerFactory pmf2 = JDOHelper.getPersistenceManagerFactory(pmfProperties);
PersistenceManager pm2 = pmf2.getPersistenceManager();
Transaction tx2 = pm2.currentTransaction();
PCPoint p21 = null;
PCPoint p22 = null;
PCRect rect2 = null;
pm = getPM();
Transaction tx = pm.currentTransaction();
try {
tx.begin();
tx2.begin();
PCPoint p11 = new PCPoint(110, 120);
PCPoint p12 = new PCPoint(120, 140);
PCRect rect1 = new PCRect (0, p11, p12);
pm.makePersistent (rect1);
p21 = new PCPoint(210, 220);
p22 = new PCPoint(220, 240);
rect2 = new PCRect (0, p21, p22);
pm2.makePersistent (rect2);
tx.commit();
tx2.commit();