I recently finished reading Ed Roman's "Mastering EJB" and I have a question about one of his recommendations...
In the case where you have the option of using 2 application servers (A and B), you have the following options:
Option 1
Server A - Dedicated to web tierServer B - Dedicated to business (EJB) tier Option 2
Server A - Contains both web and business (EJB) tiersServer B - Contains both web and business (EJB) tiers For various reasons, he recommends using the Option 2.
Also, if you have only one application server, then you are of course using the Option 2 with just server A.
My questions:
Doesn't that recommendation take the "distributed" part of EJB out of the picture?
If so, then in light of newer technologies like Spring and Hibernate, is EJB still a good choice if you use his recommendation?
Or, should we still use EJB because we have the flexibility of switching between Option 1 and Option 2?