Can I pack a session without a bean state in a war file or ear file for deployment?
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.
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 ):
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
Source: https://habr.com/ru/post/1760104/More articles:Overwrites a variable with the same safe value at the same time? - c ++Works with color gradients programmatically - pythonWhat is the difference between Python between a class call and a method call? - pythonHow to create a very dynamic LinqToEntity query? - linq-to-entitiesMore than one font with Cufon? - htmltool for graphically calling methods over time - javaAs a mass choice using jQuery - jqueryA bidirectional polymorphic merge model in Rails? - ruby-on-railsSubmitting a form using jQuery Ajax leads to multiple queries (and views) - jqueryHow to load my console rail with Spanish - ruby | fooobar.comAll Articles