Hi Dain,
On Dec 11, 2006, at 9:58 AM, Dain Sundstrom wrote:
I'm really working on a replacement for the OpenEJB Castor CMP
container that uses OpenJPA instead. I'm just hacking in the CMRs
right now, hence all the relationship questions. I hope to have
the basics done in a few days.
If
On Dec 12, 2006, at 1:51 PM, Craig L Russell wrote:
Hi Dain,
On Dec 11, 2006, at 9:58 AM, Dain Sundstrom wrote:
I'm really working on a replacement for the OpenEJB Castor CMP
container that uses OpenJPA instead. I'm just hacking in the CMRs
right now, hence all the relationship questions.
There's certainly nothing wrong with that approach.
However, the situation is not as simple as it seems. When
used in a
JTA
environment, by default an EntityManager will use a transactional
persistence context. This means that each transaction essentially
automatically gets a new
The spec defines that the way to get
application-managed EMs is via a call to
Persistence.createEntityManager(). Container-managed EMs come from
PersistenceProvider.createContainerEntityManager() (or
something like
that).
App managed em suck because you can't use JTA transactions.
1. You must use a new EntityManager for each test.
2. If you have the DataCache enabled, you'll have to clear it. You
can do that through:
((OpenJPAEntityManagerFactory) emf).getStoreCache().evictAll();
3. There is no way to clear the cache on cluster node B from cluster
node A; you have
Why not add a way to clear the cluster cache?
Any developer is free to do so.
___
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
Abe White wrote:
Why not add a way to clear the cluster cache?
Any developer is free to do so.
Ah - I didn't know if there was some architectural impediment.
geir
On Dec 8, 2006, at 1:34 PM, Pinaki Poddar wrote:
I think it is great for testing, but I am concerned about having to
write code two different ways, one for single node deployment and
another way for a clustered deployment.
is the testing environment a Weblogic cluster? Kodo has a new