Claude Moore wrote:The problem with EJBs is that they still bear all the blame they gained with early versions - most of which they honestly deserved , so nowadays they aren't so much popular.
IMHO if you are working with an application server supporting a recent Java EE version there's no real reason to avoid using EJBs 3.0. They provide transaction support, REST support, asynchronous call support for free.
Yeah. In my town, the biggest shops bought into the fad of using Session EJBs fronting Oracle Stored Procedures. It was awful, not just performance-wise, but architecturally, and it contributed greatly to my decision that stored procedures should be only be used as a last resort.
I can think of only 2 other fad blunders of that magnitude: Building major systems based on CORBA (remember CORBA? Millenials won't get this!). And building major systems on OLE/ActiveX.
Although I suppose OS/2 gets honorable mention. If you ever wonder why high-level executives get such exorbitant salaries it's because they make incisive strategic decisions like a certain Fortune corporation based locally: "Get rid of all those Macintosh computers! We're going with a system that has a future: OS/2!" (almost a literal quote).