shark工作流程學習(二)

來源:互聯網
上載者:User

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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.