下載安裝包:amoeba-mysql-binary-2.1.0-RC5.tar.gz
下載源代碼:http://amoeba.googlecode.com/svn/trunk
1.定位Amoeba啟動(dòng)類
打開amoeba.bat,經(jīng)過分析,amoeba的啟動(dòng)是通過classworlds進(jìn)行加載的,關(guān)于classworlds請參見http://classworlds.codehaus.org/launchusage.html
在amoeba.bat中是通過以下語句來定位classworlds啟動(dòng)應(yīng)用的配置項(xiàng)的
set DEFAULT_OPTS=%DEFAULT_OPTS% "-Dclassworlds.conf=%AMOEBA_HOME%\bin\amoeba.classworlds"


以下是amoeba.classworlds的內(nèi)容
main is com.meidusa.amoeba.server.AmoebaProxyServer from amoeba

[amoeba]

load $
{amoeba.home}/lib/**//*.jar
load ${amoeba.home}/lib/classes


意思就是amoeba應(yīng)用是從com.meidusa.amoeba.server.AmoebaProxyServer開始啟動(dòng)的。
接下來把a(bǔ)moeba下的源文件和amoeba-mysql下的源文件導(dǎo)入到項(xiàng)目中,以及相關(guān)jar;
為了能在bebug模式下啟動(dòng),建議在debug-arguments下增加start arguments;
posted on 2011-06-24 17:08
zhangxl 閱讀(1392)
評論(0) 編輯 收藏