This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I deploy JPA jars per application ?

 
Jose Campana
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there !

Just one quick question so as not to bore you with extensive text.

Can I deploy the JPA jars as part of one enterprise application ?

I need to know if it's possible so that I can avoid creating a shared library inside the container. The JPA implementation I'm using is EclipseLink.

Thanks in advance.

Jose.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I prefer to do it that way.

Imagine you had 10 applications using JPA 1.0, and they all referenced the same set of JARs. Then, imagine you wanted to update one application. If your rule is that all apps point to the same JARs, you'd have to update all 10 apps at the same time. How much sense does that make?

My personal preference of course.
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can, but this can depend on which application server you are using.

Generally a single shared jar is used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic