Search code examples
javamavenjakarta-eeejbear

Split EJB multiple JARs


Is there a way to separate EJB among multiple JARs? I want to modularize an EJB application but I want to load classes (session beans and entities from different JARs).

Therefore I have a parent EJB project and child modules.

EJB-PARENT
     |____jar module1
     |____jar module2
     |____jar module 3

I'm using Maven and an EAR to deploy EJBs and its children.


Solution

  • Actually I solved by using maven shade plugin to generate fat jar