Hi,

In a number of Geronimo-specific plans one can specify a JPA
persistence unit. I'm not exactly sure why this was added. That
feature does not seem to be used anywhere except the OpenEJB deployer
to define a cmp unit.

This recently become a bit of a problem since the Geronimo xsds are
importing the persistence.xsd file from java.sun.com site. The site
seems to be having some issues in the last few weeks and the these
issues resulted in a number of build errors.

Since Geronimo doesn't seem to be doing anything about the PU
definition in a given Geronimo plan I'm proposing to at least remove
the import of persistence.xsd from Geronimo xsds. In fact, some xsds
are already updated to allow for persistence element to be specified
in xml but without importing the persistence.xsd. That is, you can add
the persistence element to your xml but there will be no xmlbeans and
corresponding getter/setters generated for the persistence types.

No code in Geronimo seems to be using the xmlbeans-based persistence
types anyway. The OpenEJB deployer does define a cmp unit in Geronimo
plan but the plan in this case is read using the OpenEJB JAXB-based
API. The OpenEJB JAXB API handles the persistence unit correctly so
things should continue to work ok.

I'll go ahead and commit my changes that remove the persistence.xsd
imports. That should make the builds more reliable. But if somebody
has a better idea how to handle this please let me know.

Jarek

Reply via email to