Idle Bean

Can I pack a session without a bean state in a war file or ear file for deployment?

+3
source share
3 answers

Neither one nor the other. EJBs belong to standard JAR files (with META-INF / ejb-jar.xml). To use EJB from WAR, you collect these two archives in EAR.

Since it is not very convenient, since EJB 3.1 is for packaging EJB in WAR.

+1
source

Beans Stateless Session (SLSB) are packaged in an EJB-JAR (which is a regular JAR file), including or an optional deployment descriptor. EJB-JARs and WARs are compiled into EAR for deployment.

. Debu Panda Rezza Rahmann ( EJB 3 ):

0

With EJB 3.1 / Java EE 6, you no longer need EAR files, you can also place your beans session directly in a WAR file (as a separate .class file in WEB-INF / classes or inside a JAR file in a WAR file of WEB-INF / file lib). See http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview_Part3.html#simpack

0
source

Source: https://habr.com/ru/post/1760104/


All Articles