spark的自留地(ofbiz/eclipse rcp/shark/opentaps)

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            54 Posts :: 0 Stories :: 112 Comments :: 0 Trackbacks

          2012年3月7日 #

          到阿里工作快一年了,這一年回顧來最主要的成果還是在這里成功了推行了自己的領域建模方法與對應的技術框架。總是想同更多的同學分享一下。

          為了幫助更多人了解如何應用領域建模知識在實際項目中,我在InfoQ中發表了一篇題為“大型網站復雜業務持續重構之道——全程領域建模實踐”的文章。為了增加趣味性,我用了個故事來展開內容,請大家不要對號入座(特別是老板們)。請有興趣了解這一話題的同學可以閱讀一下

          原文在
          http://www.infoq.com/cn/articles/sb-complex-business-continuity-refact
          posted @ 2012-03-28 15:07 shanghai_spark 閱讀(374) | 評論 (0)編輯 收藏

          默認Opentaps是基于derby的安裝,這個在實際生產環境是不太可能會使用的。往往我們會實際需要使用Oracle作為生產數據庫。很多人問我怎么去修改Opentaps與Oracle的支持。修改方法如下:

          1、編輯 framework/entity/config/entityengine.xml,修改default delegate為 localoracle

          <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
          <group-map group-name="org.ofbiz" datasource-name="localoracle"/>
          <group-map group-name="org.ofbiz.olap" datasource-name="localoracle"/>
          <group-map group-name="org.ofbiz.tenant" datasource-name="localoracle"/>
          <group-map group-name="org.opentaps.analytics" datasource-name="localoracle"/>
          <group-map group-name="org.opentaps.testing" datasource-name="localoracle"/>
          </delegator>


          2、修改同個文件中的的localoracle 的datasource節點
              <datasource name="localoracle"
                      helper
          -class="org.ofbiz.entity.datasource.GenericHelperDAO"
                      schema
          -name="OFBIZ"
                      field
          -type-name="oracle"
                      check
          -on-start="true"
                      add
          -missing-on-start="true"
                      alias
          -view-columns="false"
                      join
          -style="ansi">
                  
          <read-data reader-name="seed"/>
                  
          <read-data reader-name="seed-initial"/>
                  
          <read-data reader-name="demo"/>
                  
          <read-data reader-name="ext"/>
                  
          <inline-jdbc
                          jdbc
          -driver="oracle.jdbc.driver.OracleDriver"
                          jdbc
          -uri="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
                          jdbc
          -username="ofbiz"
                          jdbc
          -password="ofbiz"
                          pool
          -minsize="2"
                          pool
          -maxsize="250"
                          time
          -between-eviction-runs-millis="600000"/>
              
          </datasource>

          3、將{ORACLE_HOME}\product\10.2.0\db_1\jdbc\lib目錄下的ojdbc14.jar拷貝到framework/entity/lib/jdbc目錄下

          4、重新運行ant run-install生成數據庫對象

          5、現在Oracle數據庫已經就緒OK啦


          posted @ 2012-03-07 10:56 shanghai_spark 閱讀(798) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 客服| 贵南县| 英德市| 汶川县| 石河子市| 海晏县| 泰兴市| 彭阳县| 沙河市| 长沙县| 济宁市| 武乡县| 神农架林区| 延吉市| 常宁市| 北流市| 华池县| 永济市| 塘沽区| 新竹县| 镇赉县| 苏尼特左旗| 额尔古纳市| 和林格尔县| 杭锦后旗| 交口县| 雅江县| 兖州市| 博野县| 元江| 台前县| 山阴县| 民权县| 泽库县| 蛟河市| 济源市| 凭祥市| 罗甸县| 平泉县| 郎溪县| 沅江市|