1,在applications文件夹下新建一个数据模块meetingroom

2, 要让ofbiz加载这个数据模块就需要在applications下的配置文件里修改参数

(1)在applications下有一个component-load.xml模块加载配置文件,加入新建的模块

<load-component component-location="meetingroom"/>

如上图所示:<load-component component-location="meetingroom"/>里定义了要加载的模块。

(2)在applications文件夹下还有一个build.xml配置文件,在这个文件的<filelist />将新建的模块下的build.xml文件加进来

<filelist id="application-builds" dir="." files="content/build.xml,party/build.xml, workeffort/build.xml,product/build.xml,marketing/build.xml, order/build.xml,manufacturing/build.xml, accounting/build.xml, securityext/build.xml, humanres/build.xml meetingroom/build.xml "/> 总结:这样做只是让ofbiz运行时加载meetingroom模块,但是ofbiz并不知道接下来要做什么。

3,接下来配置meetingroom里的文件

(1)配置meetingroom模块下的ofbiz-componet.xml配置文件

<?xml version="1.0" encoding="UTF-8"?>

<!--

Licensed to the Apache Software Foundation (ASF) under one

or more contributor license agreements.  See the NOTICE file

distributed with this work for additional information

regarding copyright ownership.  The ASF licenses this file

to you under the Apache License, Version 2.0 (the

"License"); you may not use this file except in compliance

with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,

software distributed under the License is distributed on an

"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

KIND, either express or implied.  See the License for the

specific language governing permissions and limitations

under the License.

-->

//先定义模块名

<ofbiz-component name="meetingroom"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">

//

<resource-loader name="main" type="component"/>

// 将配置文件放在指定的路径下

<classpath type="jar" location="build/lib/*"/>

<classpath type="dir" location="config"/>

//entity resource

<entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>

<entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel_old.xml"/>

<entity-resource type="data" reader-name="seed" loader="main" location="data/PartyTypeData.xml"/>

<entity-resource type="data" reader-name="seed" loader="main" location="data/PartySecurityData.xml"/>

<entity-resource type="data" reader-name="seed" loader="main" location="data/PartyGeoPointData.xml"/>

<entity-resource type="data" reader-name="seed" loader="main" location="data/PartyPortletData.xml"/>

<entity-resource type="data" reader-name="demo" loader="main" location="data/PartyDemoData.xml"/>

<entity-resource type="data" reader-name="seed-initial" loader="main" location="data/ScheduledJobs.xml"/>

//service resource

<service-resource type="model" loader="main" location="servicedef/services.xml"/>

<service-resource type="model" loader="main" location="servicedef/services_view.xml"/>

<service-resource type="eca" loader="main" location="servicedef/secas.xml"/>

<service-resource type="mca" loader="main" location="servicedef/mcas.xml"/>

<test-suite loader="main" location="testdef/PartyTests.xml"/>

<test-suite loader="main" location="testdef/PartyContactMechTests.xml"/>

//在导航中显示meetingroom

<webapp name="meetingroom"

title="meetingroom"

server="default-server"

location="webapp/partymgr"

base-permission="OFBTOOLS,PARTYMGR"

mount-point="/partymgr"/>

</ofbiz-component>

关于ofbiz加载数据模块的文件参数配置的更多相关文章

  1. 360chrome,google chrome浏览器使用jquery.ajax加载本地html文件

    使用360chrome和google chrome浏览器加载本地html文件时,会报错,提示: XMLHttpRequest cannot load file:///Y:/jswg/code/html ...

  2. 页面加载异常 清除浏览器静态文件 js css 缓存 js动态加载js css文件,可以配置文件后辍,防止浏览器缓存

    js清除浏览器缓存的几种方法 - 兔老霸夏 - 博客园 https://www.cnblogs.com/Mr-Rocker/p/6031096.html js清除浏览器缓存的几种方法   一.CSS和 ...

  3. Mysql加载本地CSV文件

    Mysql加载本地CSV文件 1.系统环境 系统版本:Win10 64位 Mysql版本: 8.0.15 MySQL Community Server - GPL Mysql Workbench版本: ...

  4. 动态加载/删除css文件以及图片预加载

    动态加载/删除css文件以及图片预加载   功能模块页面   最近,工作中遇到了一个比较奇葩的需求:要在一个页面(PC端)增加一个功能模块,但是这个页面在不久之后要重构,为了新增加的模块可以继续复用, ...

  5. 速战速决 (5) - PHP: 动态地创建属性和方法, 对象的复制, 对象的比较, 加载指定的文件, 自动加载类文件, 命名空间

    [源码下载] 速战速决 (5) - PHP: 动态地创建属性和方法, 对象的复制, 对象的比较, 加载指定的文件, 自动加载类文件, 命名空间 作者:webabcd 介绍速战速决 之 PHP 动态地创 ...

  6. UIWebView加载本地html文件

    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(, , KScreenWidth, KScreenHeight-)]; ...

  7. JBoss 系列十四:JBoss7/WildFly如何加载外部的文件或properties文件

    http://www.tuicool.com/articles/M7ZR3y 原文 http://blog.csdn.net/kylinsoong/article/details/12623997 主 ...

  8. PHP加载另一个文件类的方法

    加载另一个文件类的方法 当前文件下有a.php 和b.php,想要在class b中引入class a <?php    class a    {        public $name = ' ...

  9. webpack入坑之旅(五)加载vue单文件组件

    这是一系列文章,此系列所有的练习都存在了我的github仓库中vue-webpack,在本人有了新的理解与认识之后,会对文章有不定时的更正与更新.下面是目前完成的列表: webpack入坑之旅(一)不 ...

随机推荐

  1. 完全删除SQL server 2008

    一.在控制面板卸载程序 二.点击删除 遇到这种情况则重新启动计算机,之后依次按步骤进行即可. 三.卸载一些相关组件,方法与之类似 四.删除磁盘里的默认文件(一般数据库默认安装在C盘) 路径:" ...

  2. 子组件通过$emit触发父组件的事件时,参数的传递

    子组件.vue <template> <div> <el-table :data="comSchemaData" highlight-current- ...

  3. 算法(4) Rotate Image

    题目:把一个N×N的矩阵旋转90° 思路:这个题目折腾了好长时间,确切地说是两个小时!这道题也反映出自己的逻辑比较混乱 这道题我到底卡在了哪里?自己已经在本子上画出了一个转移的关系 a[0][0] - ...

  4. JAXB使用方式

    JAXB(Java Architecture for XML Binding) 是一个业界的标准,是一项可以根据XML Schema产生Java类的技术.该过程中,JAXB也提供了将XML实例文档反向 ...

  5. TCP/IP Note4

    TCP/IP邮件 你的电子邮件程序会使用不同的TCP/IP协议: 使用SMTP来发送邮件: 使用POP从邮件服务器下载邮件: 使用IMAP连接到邮件服务器 1. SMTP - 简单邮件传输协议 SMT ...

  6. [洛谷P4124][CQOI2016]手机号码

    题目大意:给你两个$l,r$,求出$[l,r]$中符合要求的数,要求为至少有$3$个相邻的相同数字,且不可以同时出现$8$和$4$ 题解:数位$DP$ 卡点:无 C++ Code: #include ...

  7. 洛谷 P1502 窗口的星星 解题报告

    P1502 窗口的星星 题目背景 小卡买到了一套新房子,他十分的高兴,在房间里转来转去. 题目描述 晚上,小卡从阳台望出去,"哇~~~~好多星星啊",但他还没给其他房间设一个窗户, ...

  8. 洛谷 P2486 [SDOI2011]染色/bzoj 2243: [SDOI2011]染色 解题报告

    [SDOI2011]染色 题目描述 给定一棵有n个节点的无根树和m个操作,操作有2类: 1.将节点a到节点b路径上所有点都染成颜色c: 2.询问节点a到节点b路径上的颜色段数量(连续相同颜色被认为是同 ...

  9. 移动端H5滚动穿透解决方案

    最近遇到一个很 巨恶心的问题  ios10下面 页面弹窗有滚动穿透问题 各种google 终于找到了答案,但是体验还不是很好,基本能忍受 废话不多说,上方法 最后终于想到一个处理方案,就是第一种方案的 ...

  10. POJ2516:Minimum Cost(最小费用最大流)

    Minimum Cost Time Limit: 4000MS   Memory Limit: 65536K Total Submissions: 19088   Accepted: 6740 题目链 ...