Can Jetty be used as a lightweight Java EE application server?

As part of the deployment of small Java EE web applications on different client sites, I am looking for a convenient solution for the application server.

I think I remember that Jetty could be used as a lightweight JavaEE 6 application server, but I cannot find any more evidence of this right now on the Internet.

Knowing that my development environment is JSF2 + RichFaces, CDI (Weld) and JPA 2 => NO EJB at the moment), is Jetty a possible solution for me?

If so, can you point me to some documentation or specific keywords that will help me? If not, what other lightweight Java EE 6 application server should I use?

+5
source share
2 answers

Jetty is a servlet container like Tomcat. Currently, it is completely inapplicable as a Java EE 6 application server, since the main requirement for the servlet container in this stack is the Servlet 3.0 container.

Jetty 7, the latest stable release, is still on Servlet 2.5. At the moment, no one knows when Jetty 8, which will support Servlet 3.0, will be released, but experimental releases can already be downloaded. See http://www.eclipse.org/projects/project-plan.php?projectid=rt.jetty

Even when Jetty 8 is eventually available, you will of course need to add JSF2 (Mojarra), CDI (Weld) and JPA2 (Hibernate).

Glassfish V3 ( -). 47 -. Glassfish - 2 3 . .

- Caucho Resin. - Java EE 6 (. http://caucho.com/resin-4.0/changes/resin-4.0.14.xtp) Java EE 6. Resin, , , . ( , " " )

, JBoss AS 6 . JBoss AS "" ( 12 , 181 ), " ",.

+13

, , Spring 3 CDI. . WAR mvn jetty:run . .

, Weld CDI WAR. , "" CDI JEE 6 stack, Spring.

0

All Articles