Wednesday, June 29, 2016

How to deploy EJB based application on Tomcat?

How to deploy EJB based application on Tomcat?


Tomcat is just a servlet container, thus you can deploy servlets and JSPs, but not EJBs. You need an application server like JBoss or Glassfish.

There is also an Apache TomEE project built on top of Tomcat and probably you can embed some lightweight EJB container inside Tomcat.


Bojho's Answer:

You can, but it's not meant to happen that way. Tomcat is a servlet-container, and only application servers are required to support EJB.

Tomcat with integrated EJB support is basically TomEE. Replace Tomcat by TomEE. You can keep using the Tomcat server plugin in IDE to manage TomEE.

No comments:

Post a Comment