Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy EJB based application on Tomcat

I developed a small Java application using EJB3 and JSF. But I want deploy it on Tomcat server (not GlassFish and not in Netbeans IDE it has to be independent of Netbeans).

How can I deploy it on Tomcat?

like image 789
MYE Avatar asked Nov 29 '10 14:11

MYE


People also ask

Can we deploy EJB in Tomcat?

A: The simple answer to this question is no. EJB is part of the larger Java EE platform. As Tomcat only implements the Servlet specification, EJBs cannot be natively hosted within Tomcat.

Does Tomcat support Java EE?

Indeed, Tomcat doesn't implement all the features required of a Java EE application server. The accurate title for Tomcat would be either “web server” or “servlet container”. But even though Tomcat doesn't support some Java EE features out of the box, you can still use most of these features.

Is EJB still used?

EJB is still there and growing up. There are many new features (SOAP/RESTful webservice, JPA entities, JAXB...)


1 Answers

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.

like image 75
Bozho Avatar answered Sep 28 '22 03:09

Bozho