Throughout the last three years and especially after publishing my post
JBoss minimal configuration with Tomcat I’ve been asked many times what is actually the idea behind JBoss AS Minimal Configuration profile.
So what exactly you’ll get with following command?
./run.sh -c minimal
As the name implies, minimal profile consists only from bare configuration set needed to start everything what makes JBoss AS - the microkernel itself. To benefit from its dynamic loading functionality, three services need to be started from JBoss AS code itself:
- Service Controller to manage dependency and service lifecycle management
- Main Deployer responsible for deployment process delegation
- SAR Deployer that accepts JBoss Service Archives (SAR), both packaged and *-service.xml files for already loaded MBean classes.
Although this is enough to call the newly started java process ‘JBoss’, to make it usable, more is still required. From this point rest of the control is handed over to the main configuration file
./conf/jboss-service.xml (via SAR Deployer). Minimal profile has following services configured:
- Logging service (log4j)
- Basic Thread Pool
- Naming service (JNDI)
- Deployment scanner
As you can see, modulary developed from it’s bones, the JBoss server and all its services are implemented using the component-based approach. For version 4.X this effort is based on Java Management Extensions (JMX). Easy to use MBeans with extended lifecycle, dependency and injection support are registered to the MBean Server, which acts as invocation bus providing ideal decoupling of services.
Having minimal profile allows developers to start developing regular application with added benefit of dynamic redeployment. You can think about this functional set as an powerful application framework. Deployment scanner discovers new archives and Main/SAR deployers will deploy them. What else do we need?
For more information, please, check
JBoss JMX Microkernel documentation.
Sounds interesting? It kind of does, but writing this at the end of the year 2008, we need a little bit more to get the right thrill.
More...