<openjpa-1.2.0-r422266:683325 nonfatal user error> org.apache.openjpa.persistence.TransactionRequiredException: To perform this operation, it must be written within a transaction, or your settings must allow nontransactional writes and must not detach all nontransactional reads. at org.apache.openjpa.kernel.BrokerImpl.assertWriteOperation(BrokerImpl.java:4400) at org.apache.openjpa.kernel.DelegatingBroker.assertWriteOperation(DelegatingBroker.java:1346) at org.apache.openjpa.persistence.EntityManagerImpl.refresh(EntityManagerImpl.java:687)
I am trying to use EM.refresh outside of a transaction. But OpenJPA
throws an exception, saying that it wants it to be within a transaction.
Any reason for this??
- should EntityManager.refresh require active transaction? ... Fernando Padilla
- Re: should EntityManager.refresh require active tran... Pinaki Poddar
- Re: should EntityManager.refresh require active ... Fernando Padilla
- Re: should EntityManager.refresh require act... Kevin Sutter
- Re: should EntityManager.refresh require... Fernando Padilla
