Tim Moores wrote:To compare LAMP with JEE is a bit of an apples-to-oranges comparison. LAMP does not include an app server, it only has the view layer (in the shape of PHP or Python). You wouldn't (and shouldn't) build an entire enterprise app that way, but have an app server in the background - which could be a JEE server.
Furthermore, like LAMP, JEE often runs on Linux, often uses the Apache web server, and often uses MySQL as the DB. So the comparison is only between PHP/Python as the view layer and a Java-built web layer. Since you'd use Java in the app server anyway, the question comes down to: do you want to maintain code in two languages? Does the team have the knowledge and inclination to do so?
Lastly, note that EJB has gone a bit out of fashion. Just because you're running JEE doesn't mean you necessarily would use EJBs - persistence is often handled via JPA directly.