Here is my first quiz:
When I get the latest code from git repository "git://github.com/jbossas/jboss-as.git", I start reading the code from org.jboss.as.server.Main.java.
In the code I can see the Bootstrap class initialze the module "URLStreamHandlerFactoryModule--org.jboss.vfs" and install the container service "jboss-as". But I can find the where all other services and modules such as naming, JPA, messaging are initialized and loaded.
I believe there are interfaces between container service "jboss-as" and all other modules and services, and all the modules and services are intialized and loaded in the same way.
Any comments are appreciated.
Thanks in advance
You can start by looking at the standalone configuration (standalone.xml). There you see the various subsystems defined. Each subsystem parses its own configuration and installs its respective jboss-msc services. Services can be started/stoped and have depedencies on other services. In service start you see what the respective service does on startup.