How to know if WildFly is running with Web Profile or Full Profile?

二次信任 提交于 2020-08-09 05:17:21

问题


I am exploring WildFly first time. I have installed WildFly 8.2.1.Final. As I can see in the Standalone mode it can be run with 2 profiles: Web Profile and Full Profile.

How to know for a currently running WildFly that if it is running with Web Profile or Full Profile?

Thanks


回答1:


short answer: no.

longer answer: Wildfly doesn't really have any internal distinction between web-profile and full-profile. The configuration is all there is. The default standalone.xml configuration is a certified web-distribution but Wildfly doesn't know that.

As you add or remove extensions in the configuration you are making it non-standard in terms of configuration. For example, if you add the JMS extension to web-profile you will be running something that isn't web or full profile.

Wildfly 10 is shipping with a 'servlet' profile that is even more stripped down than web profile because people tend to want to customize a lot.

As to knowing what you are running, the best way to tell this at runtime is to:

- connect with jboss-cli.sh
- run the command: ls extension

this will give you a list of running extensions and you can check for the presence of the ones you care about.



来源:https://stackoverflow.com/questions/32129651/how-to-know-if-wildfly-is-running-with-web-profile-or-full-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!