{
userTransaction = (UserTransaction) initialContext.lookup("java:comp/UserTransaction");
em.setFlushMode(FlushModeType.COMMIT);
userTransaction.begin();
CouchDBPersonJTAEntity person = new CouchDBPersonJTAEntity();
person.setPersonId("1_p");
person.setPersonName("crossdata-store");
CouchDBAddressJTAEntity address = new CouchDBAddressJTAEntity();
address.setAddressId("1_a");
address.setStreet("my street");
person.setAddress(address);
try
{
em.persist(person);
}
catch (Exception ex)