JSF on Tomcat - why is this possible?

I have a simple question (and stupid - shame on me :)

As I understand it, Tomcat is a web container that implements the Servlet / JSP specifications. Tomcat is not a fully functional Java EE application server, so I cannot deploy and run an EJB application on Tomcat.

So far so good.

But ... I can deploy and run JSF applications on Tomcat. JSF - as I understand it - this is part of Java EE and is "supported" by EJB (for example, you use stateless / stateful beans).

At the bottom: Why can I run JSF applications supported by EJB and are not able to deploy a "regular" EJB application (that is, non-JSF).

Thanks in advance =)

+8
java java-ee tomcat jsf ejb
source share
1 answer

As others have found, EJB! = JSF. However, you can get EJB to work with Tomcat and JSF through Apache TomEE . You can upload it to Tomcat 7 or just use a binary file that is already configured. TomEE was built precisely to answer the question "Who am I using X on Tomcat."

There is also the beginning of a video that shows EJB, a CDI running on Tomcat connected to Eclipse.

+3
source share

All Articles