<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    love fish大鵬一曰同風起,扶搖直上九萬里

    常用鏈接

    統計

    積分與排名

    friends

    link

    最新評論

    ofbiz實體引擎結合jbuilder的配置

    1.1 配置
    這一節將給出實體引擎在jbuider中單獨使用的配置向導
    本文是從ofbiz網站的(OFBiz Quick Start Guide by Brett G. Palmer)的基礎上完成配置。

    1.從www.ofbiz.org中下載ofbiz-XX-XX-complete.zip包,本文用的是ofbiz-2.1.1-apps.zip
    解開放到某個目錄下,本文在j:\ofbiz,這也就是ofbiz.home的值
    2.建立jbuilder項目,如下圖所示


    3.加入源文件,
    ofbiz.home/core/src/entiry
    ofbiz.home/core/src/share


    4.加入所用到的jar文件
    ofbiz.home/lib/common
    ofbiz.home/lib/compile
    ofbiz.home/lib/jasterreports
    ofbiz.home/lib/jotm
    ofbiz.home/lib/scripting
    ofbiz.home/lib/share
    ofbiz.home/lib/tyrex



    5.將配置文件等導入工程
    將ofbiz.home/commonapp/etc下所有文件打到ofbiz_etc.jar包內
    jar cvf ofbiz_etc.jar *
    將ofbiz.home/core/docs/xmldefs/ofbiz下所有文件打到ofbiz_dtd.jar包內
    jar cvf ofbiz_dtd.jar *

    將這兩個包引入工程。

    6.將ofbiz.home\setup\jrun4\servers\ofbiz\SERVER-INF\jndi.properties文件放入
    ofbiz.home\lib\jotm\jotm.jar包內

    7.配置ofbiz.home
    在項目run tab中加入vm parameter:
    -Dofbiz.home=j:\ofbiz

    8.在GenericDelegator.java中,將下面語句注釋掉。
    /*
    // setup the Entity ECA Handler
    try {
    Class eecahClass = loader.loadClass(ECA_HANDLER_CLASS_NAME);
    this.entityEcaHandler = (EntityEcaHandler) eecahClass.newInstance();
    this.entityEcaHandler.setDelegator(this);
    } catch (ClassNotFoundException e) {
    Debug.logWarning(e, "EntityEcaHandler class with name " + ECA_HANDLER_CLASS_NAME + " was not found, Entity ECA Rules will be disabled");
    } catch (InstantiationException e) {
    Debug.logWarning(e, "EntityEcaHandler class with name " + ECA_HANDLER_CLASS_NAME + " could not be instantiated, Entity ECA Rules will be disabled");
    } catch (IllegalAccessException e) {
    Debug.logWarning(e, "EntityEcaHandler class with name " + ECA_HANDLER_CLASS_NAME + " could not be accessed (illegal), Entity ECA Rules will be disabled");
    } catch (ClassCastException e) {
    Debug.logWarning(e, "EntityEcaHandler class with name " + ECA_HANDLER_CLASS_NAME + " does not implement the EntityEcaHandler interface, Entity ECA Rules will be disabled");
    }
    */


    9.測試文件Test.java
    package org.ofbiz.core;

    import org.ofbiz.core.entity.GenericDelegator;
    import org.ofbiz.core.entity.GenericValue;
    import org.ofbiz.core.util.UtilMisc;
    import org.ofbiz.core.entity.*;


    public class Test {
    public static void main(String[] args) {
    System.out.println("Entered testFindByPrimaryKey");
    //Instantiate the delegator.
    GenericDelegator delegator = GenericDelegator.getGenericDelegator("default");


    // Find book by primary key
    try {
    GenericValue party= delegator.findByPrimaryKey("PartyType",
    UtilMisc.toMap("partyTypeId", "PERSON"));
    }
    catch (GenericEntityException ex1) {
    }
    return;
    }

    }

    10.ok

    posted on 2006-08-15 11:29 liaojiyong 閱讀(526) 評論(0)  編輯  收藏 所屬分類: Ofbiz


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲av无码一区二区三区天堂古代| 亚洲av中文无码乱人伦在线r▽| 伊人久久国产免费观看视频| 亚洲综合另类小说色区| a级毛片免费在线观看| 亚洲另类小说图片| 亚洲成A∨人片天堂网无码| 99久久99热精品免费观看国产| 亚洲粉嫩美白在线| 久久精品国产亚洲7777| 在线观看永久免费| 免费国产高清毛不卡片基地| 亚洲国产精品久久久久婷婷软件| 国产精品黄页在线播放免费| 久久久久久AV无码免费网站| 亚洲国产AV一区二区三区四区| 国产AV无码专区亚洲精品| 午夜毛片不卡高清免费| 久久久高清日本道免费观看| 国产亚洲精品美女| 亚洲最大黄色网站| 国产亚洲精AA在线观看SEE| 免费无码又爽又刺激高潮的视频 | 无人视频免费观看免费视频 | 亚洲另类自拍丝袜第1页| 老司机亚洲精品影视www| 成年女人午夜毛片免费看| 鲁丝片一区二区三区免费| 理论片在线观看免费| 亚洲五月综合缴情婷婷| 久久精品国产亚洲AV果冻传媒| 免费国产a国产片高清网站| 免费精品国产自产拍在线观看图片| 精品97国产免费人成视频| 噜噜综合亚洲AV中文无码| 亚洲最大中文字幕| 亚洲AV日韩AV天堂久久| 激情综合色五月丁香六月亚洲| 国产精品无码素人福利免费| 青青青国产在线观看免费网站| 日本免费中文字幕|