Hi David J & Dain,
Thank you very much for you guys information.
According to the Dain's information I have created a JIRA issue
(GERONIMO-2899) & submitted a patch. It will now only create "cmp" if
there is cmp information found in the ejb-jar.xml (please note it will
create only one cmp).
For the JPA side I think now we need not hard coded openjpa JPA provider
class name. Am I correct David (Is there any situations where both CMP
and JPA comes together)? If we could remove this provider name that
would be much easier for me in Cayenne work I am carrying out right now
:-) .
Thanks,
Lasantha
Dain Sundstrom wrote:
On Feb 25, 2007, at 2:11 AM, David Jencks wrote:
On Feb 24, 2007, at 8:47 PM, Lasantha Ranaweera wrote:
Hi David,
I have been going on this same jpa sample given on testsuite and
having a
problem too (may be I am missing some basic thing in JSR). Anyway
thought
to give a try on this same thread it looks iron is hot here and it will
give some insight on G to our users too. ;)
In my debugging enviroment shows that above sample application
creates 3
PersistenceUnitGBeans. The one I dont understand it named 'cmp'. Where
does it comes from ? Either 'persistence.xml' or 'openejb-jar.xml'
doesn't
have that information know. Do you have any idea what is I am missing
here?
That one is created by some magic code dain wrote to map cmp 2.1
entity beans to jpa. Apparently it shows up even if you have no
entity beans.
It should only be created if your application has CMP entities. If
notice this code creating a persistence unit for applications without
CMP entities, it is a bug.
-dain