ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  POJO Application Frameworks: Spring Vs. EJB 3.0
Subject:   Will EJB 3.0 run in any Servlet Container?
Date:   2005-06-30 09:18:10
From:   MichaelYuan
Response to: Will EJB 3.0 run in any Servlet Container?


As I discussed the in article, the key difference between EJB 3.0 and Spring is that the vendor integrates the stack for you in EJB 3.0 while Spring gives you more flexibility in assembling your own stack -- at a cost in complexity, of course.


So, to answer your question, EJB 3.0 will run on any servlet container the vendor supports, which will eventually include all servlet containers but we are not there yet.


On the other hand, there is an effort at JBoss to develop an embedded version of EJB 3.0. It will run in generic J2SE environment and hence will run in any J2SE servlet container if you choose to do so.


Also, just to be picky: Neither Spring nor EJB 3.0 will run on *any* servlet container. OSGi has a servlet container for J2ME devices. I do not think either will run on that anytime soon. ;)