Women in Technology

Hear us Roar



Article:
  POJO Application Frameworks: Spring Vs. EJB 3.0
Subject:   Will EJB 3.0 run in any Servlet Container?
Date:   2005-06-30 06:22:59
From:   Julian-Garcia
Will EJB 3.0 run in any Servlet Container? Spring does.
Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Will EJB 3.0 run in any Servlet Container?
    2005-08-13 10:20:54  alexisk [View]

    Yes, it will (it should)...
    EJB 3.0 is embeddable like it is said in the specifications! So you can embed EJB in Tomcat...


    One thing: EJB 3.0 and Spring have really different usages and they are more complementary than concurrent:

    EJB allow with RMI to send object over the network, does spring has this feature? I don't believe, the fact is the you fight on some fonctionnalities which are provided by both, but EBJ is in my mind a very different thing than Spring!!
    • Will EJB 3.0 run in any Servlet Container?
      2007-05-17 08:12:43  reardon [View]

      In fact Spring does have remoting with RMI as well as SOAP, Hessian and Burlap.
  • Will EJB 3.0 run in any Servlet Container?
    2005-06-30 09:18:10  MichaelYuan [View]


    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. ;)