users@jpa-spec.java.net

[jpa-spec users] Why persistence.xml in ear root is no longer supported?

From: Paul Benedict <pbenedict_at_apache.org>
Date: Mon, 3 Nov 2014 08:51:56 -0600

It's my understanding since JPA 2.0, putting persistence.xml is in the
<EarRoot>/META-INF folder is no longer supported [1]. If that's true, what
is the reasoning? I find it very inconvenient to create a jar file for the
sole purpose of holding this file. It seems rather unintuitive to require
this approach -- more boilerplate.

Can someone explain the technical justification?

[1] JPA 2.1 spec, section 8.2

Cheers,
Paul