Jason Greene [
http://community.jboss.org/people/jason.greene] created the discussion
"Re: Classloader parent delegation on Jboss AS7"
To view the discussion, visit:
http://community.jboss.org/message/614498#614498
--------------------------------------------------------------
If you are using EJB or JPA spec apis you end up with a module dep on the new version
automatically being added.
See:
https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+fo...
https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+fo...
We plan to add a feature in a future release (7.1 at the latest) that allows you to
install custom JPA providers. Optionally, if you are using hibernate directly, and the JPA
inclusion isn't really used, you can exclude the auto hibernate dep (see exlusions):
https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
Note that the reason that we have to have some kind of provider/implementation is that JPA
has all kinds of requirements about how the container should process the deployment. E.g.
@PersistenceContext has to properly injected at certain times in the container lifecycle
and properly interact with the TM. So a standalone library, wihtout any kind of app server
integration is going to not be 100% operational
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/614498#614498]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]