WebSphere interview question · Most asked
How does Liberty's server.xml and feature model work?
How it works
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 fromserver.env,bootstrap.properties, environment variables or<variable>elements. - Applications deploy through
<application>elements or by dropping them indropins/. - 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
- How would you migrate an application from traditional WebSphere to Liberty?
- What is WebSphere Application Server, and how do Liberty and traditional WAS differ?
- How do you configure a JDBC data source and connection pool in Liberty and in traditional WAS?
- Explain the traditional WebSphere Network Deployment architecture: cell, Deployment Manager, nodes, node agents, servers and clusters.
- Explain class loading in WebSphere: parent-first versus parent-last, and shared libraries.
- Users see errors and the logs show J2CA0045E: connection not available. How do you investigate?
- WSVR0605W hung thread warnings appear and the application stops responding. What do you do?
- What is JNDI, and how do applications look up resources in WebSphere?