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?
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.
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.
EJB is still there and growing up. There are many new features (SOAP/RESTful webservice, JPA entities, JAXB...)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With