Java EE without application server

Since EJB 3 has embedded EJB containers, JPA implementations can be used without an application server, there is Weld for contexts and dependency injection and so on. Since only Tomcat is available on many systems, it is interesting if Java EE could be used without an application server, but with a Servlet container such as Tomcat.

What do I need to do to set up the Java environment? What disadvantages do you see?

+5
source share
4 answers

Please note that Tomcat is an application server. However, in October we released Apache TomEE , which is Tomcat with missing JavaEE parts, and then Java EE 6 certified using the official Oracle TCK.

The stack evolved from what used to simply be called "OpenEJB / Tomcat", which was a useful stack with a bad name :) Usually overlooked due to the "EJB" part, meanwhile it also supplied transactions, JMS, WebServices and more for Tomcat . The new name is much better, and now it is officially certified as JBoss or GlassFish. We are very happy about his future.

+5
source

If I understand well, you want to use EJB3 / JPA in the servlet container.

JPA, EJB3, OpenEJB Glassfish . Servlet EJB3.

(: . JTA . Servlet, Tomcat. JPA JTA JDBC, , JTA. , , , , , , , JTA- .)

Spring. Spring EJB3 . Spring DI Servlet , EJB3 ( ..). . Spring EJB3.

, Java EE. Sevlets, EJB3, JMS, JPA, JTA - . , , , Spring, Java EE. , , . . , Servlet/EJB3/JPA , . .

+2

- , , Java EE. , JVM , . Tomcat Jetty , , , .

+1

J2EE ( , Atomikos), : http://www.onjava.com/pub/a/onjava/2006/02/08/j2ee-without-application-server.html - JMS JDBC .

, Spring Hibernate. , , Java EE XML, EJB. .

Tomcat, , Atomikos Tomcat http://www.atomikos.com.

-1

All Articles