问题
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