posts - 28,  comments - 15,  trackbacks - 0


          下載安裝包:amoeba-mysql-binary-2.1.0-RC5.tar.gz
          下載源代碼:http://amoeba.googlecode.com/svn/trunk


          1.定位Amoeba啟動類

          打開amoeba.bat,經過分析,amoeba的啟動是通過classworlds進行加載的,關于classworlds請參見http://classworlds.codehaus.org/launchusage.html

          在amoeba.bat中是通過以下語句來定位classworlds啟動應用的配置項的

           

          set DEFAULT_OPTS=%DEFAULT_OPTS% "-Dclassworlds.conf=%AMOEBA_HOME%\bin\amoeba.classworlds"


          以下是amoeba.classworlds的內容

          main is com.meidusa.amoeba.server.AmoebaProxyServer from amoeba

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



          意思就是amoeba應用是從com.meidusa.amoeba.server.AmoebaProxyServer開始啟動的。


          接下來把amoeba下的源文件和amoeba-mysql下的源文件導入到項目中,以及相關jar;

          為了能在bebug模式下啟動,建議在debug-arguments下增加start arguments;

          posted on 2011-06-24 17:08 zhangxl 閱讀(1389) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2011年6月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          常用鏈接

          留言簿(1)

          隨筆分類(17)

          隨筆檔案(28)

          文章分類(30)

          文章檔案(30)

          相冊

          收藏夾(2)

          hibernate

          java基礎

          mysql

          xml

          關注

          壓力測試

          算法

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 96393
          • 排名 - 601

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 东源县| 阿拉善左旗| 隆化县| 哈密市| 班戈县| 朝阳区| 太康县| 夏邑县| 孝感市| 瑞金市| 卢氏县| 当涂县| 定襄县| 平武县| 漳平市| 大荔县| 兴化市| 迭部县| 涡阳县| 南澳县| 安塞县| 曲麻莱县| 临武县| 米脂县| 邳州市| 金堂县| 玛多县| 油尖旺区| 济阳县| 德州市| 东乌珠穆沁旗| 信宜市| 宣恩县| 普格县| 苍溪县| 光泽县| 忻州市| 和静县| 剑川县| 巨野县| 福海县|