geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ApolloX <>
Subject Re: EJB Entity Cache in Geronimo 2.1
Date Sat, 23 Feb 2008 01:00:01 GMT

I discovered I could set the default jpa properties previously mentioned for
the server by adding them to the jpa persistence section in the server's
config xml file.  I think where I was most confused is that it wasn't clear
to me that with CMP2 in G2.1, the ultimate controller of persistence was

Where does openejb fit into the architecture?  I see numerous calls all by
openejb in the log files.  When I see a call to a finder method by openejb
does that means its going to the database, or it could be using data from
the cache?

Its possible my performance issues are un-related to caching, but either way
the application which was running in G1 is now thrashing on most calls, with
wait times in the minutes.

Jacek Laskowski wrote:
> Yes, persistence.xml for CMP2 ;-) Although CMP2 beans don't need
> persistence.xml you should already know that Geronimo uses JPA layer
> for JPA itself as well as for CMP2. With that said, you may have
> expected to have a persistence.xml file for CMP2 created by Geronimo
> on the fly. That's exactly how it's done. When you deploy CMP2 beans
> they're layered atop JPA and persistence.xml is created for them upon
> deployment. The persistence.xml name is persistence-unit name="cmp".
> I'm not sure if that's described somewhere (other than burried in
> openejb/geronimo mailing lists), but Running JBoss Seam 2.0.0.GA on
> Geronimo 2.1
> (
> should give you more insights on the persistence.xml with cmp PU
> configured.
> Jacek

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message