WebSphere interview question · Most asked

How does Liberty's server.xml and feature model work?

How it works

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Each Liberty server has a server.xml that lists features in <featureManager> (for example restfulWS-3.1, jdbc-4.3, mpHealth-4.0) and configures resources such as data sources, security and applications. Liberty loads only the enabled features and their dependencies, and applies most configuration changes dynamically without a restart.

Longer Answer

  • Convenience features (webProfile-10.0, jakartaee-10.0, microProfile-6.1) enable a whole platform.
  • Includes and configDropins/overrides/ split configuration; variables (${db.host}) come from server.env, bootstrap.properties, environment variables or <variable> elements.
  • Applications deploy through <application> elements or by dropping them in dropins/.
  • Because configuration is plain files, it fits Git, containers and Kubernetes ConfigMaps.

Key Points

  • Enable only needed features.
  • Config is files: server.xml, includes, dropins, variables.
  • Most changes apply without restart.
  • Convenience features enable whole platforms.

Explanation

What interviewers look for

Understanding configuration-as-files and the feature model.

More WebSphere questions

← All WebSphere questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake