4 ms·
Precisely! EJB used to be a nightmare (a lot easier now with annotations), but I would see people use them for web apps that had 10 users tops. It was insane.
by forinti 7y ago
Precisely! EJB used to be a nightmare (a lot easier now with annotations), but I would see people use them for web apps that had 10 users tops. It was insane.
- theandrewbailey 7y agoI 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).