Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How java libraires from one EAR file could be accessed by another EAR file?

I have two .Ear files, namely A.EAR and B.EAR. The first file is my application (around 1.5 MB) and the second one contains all the needed libraries such as Hibernate, log4j, etc. (Around 70 MB). How can I deploy them on weblogic in such a way that my code in A.EAR use libraries in B.EAR?

  1. I cannot pack them into one .EAR file, coz I need to email my app every week. On emailing I just send the A.EAR file.
  2. I cannot put the used libraries in lib folder of weblogic, because other apps use different library versions.

Edit:

Having find the right answer, it seems that this Q on SO is somehow relevant.

like image 706
Gupta Avatar asked Oct 06 '22 05:10

Gupta


1 Answers

You could define B.ear as a shared application library and access it from A

http://docs.oracle.com/cd/E17904_01/web.1111/e13706/libraries.htm#i1065356

like image 159
JoseK Avatar answered Oct 10 '22 01:10

JoseK