> How much slower is EJB then than RMI? We use RMI fairly regularly and it > seems relatively fast.
But you probably don't use dozens of RPC calls per request. One RMI call is not that slow (although it's slower than zero RMI calls). This is why everyone using EJB has now learned to treat entity EJBs as local objects and use just a single remote call to a session EJB that makes local calls to entity EJBs. At that point, you're not doing anything more distributed than a typical mod_perl/mod_proxy setup. There are other things that can make EJBs slow. There's a proliferation of classes, and the O/R mapping is often not very efficient. The original thrust of this discussion though was just that distributed component systems are overrated and that simpler application models are appropriate for solving most problems. - Perrin