I wonder how I would implement a Service-Factory using EJB using an property as criteria to determine which implementation should be used.
In old-fashioned this looked like this:
But using this implementation does not give me the chance to use the dependency-injection in my subclasses (such as ServiceA or ServiceB). So there has to be another way.
A saw, that there is this Producer-Annotation. Would this be the way to go?