3 ms·
I barely remember how EJB used to be, though I recall that it involved a mess of XML and interfaces. Nowadays, EJB is a built-in dependency injection system. Pu
by theandrewbailey 7y ago
I barely remember how EJB used to be, though I recall that it involved a mess of XML and interfaces. Nowadays, EJB is a built-in dependency injection system. Put @Singleton on one class, then @EJB on a field in a Servlet (or what have you).