Is there an easy way to execute code when deploying a JBSS JAR inside an EAR?

I plan to deploy the EAR packaged application in JBoss v4.2 as a folder containing the contents of the EAR. So far, the EAR is being deployed as a single file. I hope I can replace single JARs without having to restart the application.

Is there any event listener or annotation that can be used to register these JAR files during deployment? An idea is a plugin , such as deploying some features that implement a well-known interface. Plugins must be used in the Seam web server environment and can be replaced with updated versions on the fly.

Any ideas? Thank.

+3
source share
1 answer

AFAIK, this is not possible / supported. When using an exploded EAR, touching a single module will cause a hot deployment of the entire EAR.

- Java: EJB3, JSF, POJO :

3.4.2.

JBoss, . EAR, EJB3 JAR WAR JAR JBoss . JAR . , dvdcatalog.ear , .

JSP Java . META-INF/application.xml ( , ) EAR . .

, , . , , JAR ( , ), (- , , ). , OSGI.

.

+3

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


All Articles