Shark使用者化配置
Shark1.0利用自己和輕量級持久層dods和內建的小型資料庫互動。如果要指定資料庫和dods互動,你需要修改一些相關的設定檔,以mysql資料庫為例:修改shark.conf,
//初始化資料庫數組
DatabaseManager.Databases[] = "HongSoft"
//指定要用到的資料庫
DatabaseManager.DefaultDatabase = " HongSoft "
//調試開關
DatabaseManager.Debug = "true"
//指定為標準形式
DatabaseManager.DB. HongSoft.ClassType = "Standard"
//指定要用的jdbc驅動
DatabaseManager.DB. HongSoft.JdbcDriver="org.gjt.mm.mysql.Driver"
//指定url
DatabaseManager.DB. HongSoft.Connection.Url="jdbc:mysql://localhost/test"
//使用者
DatabaseManager.DB. HongSoft.Connection.User = "root"
//密碼
DatabaseManager.DB. HongSoft.Connection.Password = ""
其他的只要把對應的預設資料庫的名稱改為HongSoft就可以。
然後修改sharkconfig部分,需要修改的地方如下:
// 庫目錄設定
STORED_PROCEDURES_REPOSITORY=C:/Shark-1.0/repository/storedprocedures - currently fixed in the code
EXTERNAL_PACKAGES_REPOSITORY=C:/Shark-1.0/repository/external
INTERNAL_PACKAGES_REPOSITORY=C:/Shark-1.0/repository/internal
PACKAGE_HISTORY_REPOSITORY=C:/Shark-1.0/repository/internal/History
修改log4j部分:
<param name="File"
value="C:/Shark-1.0/logs/SharkPersistence.log"/>
<param name="File" value="C:/Shark-1.0/logs/SharkExecutionFlow.log"/>
這樣所有設定檔修改完畢
接下來在你需要在用到的資料庫中執行sql指令碼建立表:
安裝目錄/Shark-1.0/sql/ mysql /sql/***.sql
配置全部結束,現在你可以啟動shark了,啟動順序是名稱伺服器(tns.bat),伺服器(run.bat),管理主控台(runA.bat)。你也可以用捷徑shark(runAll.bat)一次性啟動三種服務。
hongbo781202,又名HongSoft,職業程式員,研究領域:1)基於工作流程的BPM系統研究2)基於JAVA的資訊安全
技術.歡迎和大家討論JAVA相關各方面技術和市場問題 hongbosoftware@163.com