简体   繁体   English

我应该将我的应用程序打包到wildfly / jboss模块中吗? (或任何等效的Java EE服务器tek)

[英]Should I package my app into wildfly/jboss modules? (or any Java EE server equivalent tek)

I have taken over a large EE app which was mostly deployed as wildfly/jboss modules. 我已经接管了一个大型的EE应用程序,该应用程序主要是作为wildfly / jboss模块部署的。 There are separate apps off-course, and then there are this large number of modules. 路线外有单独的应用程序,然后有大量的模块。

Now, I get it - the intent is to share these components between multiple apps deployed on your server. 现在,我明白了-目的是在服务器上部署的多个应用程序之间共享这些组件。 But this also tightly couples these modules and to all of these apps. 但这也将这些模块与所有这些应用紧密结合在一起。 Also, Wildfly/JBoss has the facility to load dependencies from other modules, and each deployment is a module. 另外,Wildfly / JBoss具有从其他模块加载依赖项的功能,并且每个部署都是一个模块。 Why should I package anything into the wildfly/modules/system/layers/base directory? 为什么要将任何内容打包到wildfly / modules / system / layers / base目录中? Why not just deploy wars and ears as wildfly/standalone/deployments and define inter-module depdencies there? 为什么不只是将战争和耳朵部署为“野蝇” /“独立” /“部署”并在那里定义模块间依赖关系呢?

What is the best practice? 最佳做法是什么? What am I missing here? 我在这里想念什么?

Deploying code in my own deployments allows it to be shared between multiple other deployments and allows for hot deployment. 在我自己的部署中部署代码可以使其在多个其他部署之间共享,并允许热部署。

It is never a good idea place your code within the wildfly system modules. 将您的代码放在wildfly系统模块中绝不是一个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 i need to migrate a java EE, jsf, jboss eap 6.3 primefaces app to wildfly 8.2.1 - i need to migrate a java EE, jsf, jboss eap 6.3 primefaces app to wildfly 8.2.1 将Java EE Web App部署到Wildfly / JBoss EAP - Deploying Java EE Web App to Wildfly/JBoss EAP Windows Server上的简单Java应用程序......我应该使用Java EE吗? - Simple Java app on a Windows Server … should I use Java EE 我应该使用哪个Java EE服务器? - Which Java EE server should I use? Java EE + Wildfly:无法启动服务jboss.persistenceunit - Java EE + Wildfly: Failed to start service jboss.persistenceunit 使用Jboss和Wildfly 9.x运行Java EE项目时出错 - Error while runing java EE project with Jboss and Wildfly 9.x 为什么我应该使用Java EE服务器库而不是app libs? - Why should I use Java EE server libs instead of app libs? 我应该将EL 2.2与Java EE 5 / Tomcat 6.0.29一起使用吗? 服务器或应用程序升级? - Should i use EL 2.2 with Java EE 5/Tomcat 6.0.29? Server or app upgrade? 从Java ee 7中将应用程序用户添加到我的wildfly服务器的属性文件中 - Add an Application User to property-file of my wildfly server out of java ee 7 在 Jboss Wildfly 服务器上运行 spring boot app - Run spring boot app on Jboss Wildfly server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM