I have an application that loads a class at runtime. This class implements an interface.
I packaged an deployed my app in a ear file, which contains the interface.
The implementation of this interface is contained in an external jar file.
I want to make the jar file containing the implementation available to my application, but I don't want to package it within the ear file, because I want to swap implementations without having to rebuild the whole application.
Is it something possible?
I tried to read every documentation available, but I couldn't find a solution.
If I deploy the implementation jar in server/default/lib, then I get java.lang.NoClassDefFoundError because the interface is not visible.