#StackBounty: #java #maven #dependency-injection #dependencies ejb with client artifact – runtime dependency?

Bounty: 50

Our company creates an ejb in two artifacts. The impl artifact contains the implementations and the client artifact contains all the interfaces. This means that the impl artifact has a compile dependency on the client artifact.

Now at runtime, the client artifact needs the impl artifact – otherwise the container cannot inject the required objects. This means that an ear needs to contain the impl artifacts for all client artifacts.

Does this mean that the client artifact should have a runtime dependency on the impl artifact? Or should these “circular” dependencies be avoided, even if one direction is compile and the other is runtime?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.