Hello everyone:
I check the source code fromhttp://svn.wso2.org/repos/wso2/trunk/carbon.
and compile them successfully using maven with a product
named"wso2carbon-3.1.0-SNAPSHOT".
when the server start, we will see the following info:
[2010-12-14 15:13:05,822] INFO {org.wso2.carbon.server.Main} - Initializing sy
stem...
[2010-12-14 15:13:05,977] INFO {org.wso2.carbon.server.TomcatCarbonWebappDeploy
er} - Deployed Carbon webapp: StandardEngine[carbonEngine].StandardHost[default
host].StandardContext[/]
[2010-12-14 15:13:08,089] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Starting WSO2 Carbon...
[2010-12-14 15:13:08,108] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Operating System : Windows Vista 6.1, x86
[2010-12-14 15:13:08,110] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Java Home : C:\Program Files\Java\jdk1.6.0_10\jre
[2010-12-14 15:13:08,113] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Java Version : 1.6.0_10-rc2
[2010-12-14 15:13:08,115] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Java VM : Java HotSpot(TM) Client VM 11.0-b15,Sun Microsystems I
nc.
[2010-12-14 15:13:08,118] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Carbon Home : D:\WSO2-P~1\WSO2CA~1.0-S\bin\..
[2010-12-14 15:13:08,120] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - Java Temp Dir : D:\WSO2-P~1\WSO2CA~1.0-S\bin\..\tmp
[2010-12-14 15:13:08,122] INFO {org.wso2.carbon.core.internal.CarbonCoreActivat
or} - User : Administrator, zh-CN, GMT+08:00\
.............
2010-12-14 15:13:13,091] INFO {org.wso2.carbon.registry.core.internal.Registry
CoreServiceComponent} - Registry Mode : READ-WRITE
[2010-12-14 15:13:13,369] INFO {org.wso2.carbon.core.init.CarbonServerManager}
- Starting Carbon initialization...
[2010-12-14 15:13:13,612] INFO {org.infinispan.factories.GlobalComponentRegistr
y} - Infinispan version: Infinispan 'Radegast' 4.1.0.CR2
[2010-12-14 15:13:13,628] INFO {org.infinispan.factories.ComponentRegistry} -
Infinispan version: Infinispan 'Radegast' 4.1.0.CR2
[2010-12-14 15:13:13,742] INFO {org.wso2.carbon.core.init.CarbonServerManager}
- Creating super-tenant Axis2 ConfigurationContext
...........................
So I think the start process may be like this,
1. Main class in the org.wso2.carbon.server.jar
2. start a embeded tomcat
3. deploy the content of CABONHOME/lib/core as a tomcat web
app.
4. when the first request comes in, the servlet(BridgeServlet) specified
in the web.xml will be inited.
5.the BridgeServlet will call the EquinoxFrameworkLauncher, and run
it's init(),deploy(),start()
6. in EquinoxFrameworkLauncher 's start() method,
it will first read the
CARBONHOME/lib/core/WEB-INF/eclipse/launch.ini, and get the initial
properties,the add some other information into the
properties[1],for example ,"osgi.launch.area"
second, start the "org.eclipse.osgi- version...." and use this as the
framework classloader.
third,use this classloader to load class
"org.eclipse.core.runtime.adaptor.EclipseStarter"
forth, init its' property map by the above properties[1].
fifth, call it's startup method.
I think after that the EclipseStarter will load the bundles in
"osgi.launch.area".
But what 's the bundle 's load order?
In the red info of the start of the server, we can see when the osgi
framework started, the org.wso2.carbon.core bundle will first be loaded ,then
the org.wso2.carbon.registry.core bundle, then the some other carbon bundles.
Please point out my errors and give some instructions on the bundle's load
and execute order.
Thank you very much!
Best wished.
ShiLiang liang
School of Computer Science
Beijing University of Posts and
Telecommunications
Beijing 100876, P. R. China_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev