1、Developing Enterprise Applications Using OFBizjava Family1.相关资料主站:http:/www.ofbiz.org/源码:http:/svn.ofbiz.org/学习:http:/ofbizwiki.go- server jdbc,http:/ Source Software OverviewOFBiz ArchitectureThe Open For Business Project:Foundation Technology How To Developing Enterprise Applications Using OFBiz4.
2、1.GPL&LGPL More restrictive,modifications must be open sourced Best for Infrastructure Software and Most Desktop Applications 2.BSD&MIT Changes unburdened,free to redistribute,sell,etc Best for Business Application Software 3.Others:Mozilla,Apache,Sun,Apple,etc 4.OSI Licenses(www.opensource.org)Open
3、 Source Licenses5.TopicsOpen Source Software OverviewOFBiz ArchitectureThe Open For Business Project:Foundation Technology How To Developing Enterprise Applications Using OFBiz6.Model-View-Controller Patternhttp:/ Overview链链接:接:The Open For Business Project:Architecture Overview Diagrams7.Controller
4、s-Data Level Controller Entity EngineLocalProgramGenericDelegatorJDBCHelperMySqlDatabaseOracleDatabaseOtherDatabaseCustomHelperLegacyData8.Controllers-Logic Level ControllerService EngineLocalProgramServiceDispatcherJavaEngineJavaServiceWorkflowEngineWorkflowServiceJMSEngineJMSServiceHTTPEngineHTTPS
5、ervice9.Controllers-Web User Interface Level ControllerJPublish FrameworkSeparate the logic code from presentation layerFlexible actionsBeanShell,Python(Jython),etcSupport for multiple template enginesVelocity,Freemarker,WebMacroTemplates10.Data Flow Between Components1.Request from Browser2.Control
6、 Servlet Called3.Request Looked Up4.Security Checked5.Event Called(if defined)1.Java type event 2.Service type event 3.Simple type event6.Response Chosen and Called 1.View Looked Up 2.JPublish page definition or JSP,etc Looked Up 3.View rendered11.Data Flow Between Components(cont)BrowserControlServ
7、letEventServiceEngineServiceEntityEngineDatabaseViewValidatorConverterJSPFreeMarkerWorkerScriptTemplate12.TopicsOpen Source Software OverviewOFBiz ArchitectureThe Open For Business Project:Foundation Technology How To Developing Enterprise Applications Using OFBiz13.The Open For Business Project:Fou
8、ndation Technology Common Tool Components Services Engine Workflow Rules(问题建模:侧重解决)Constraint Based Optimization(问题建模,侧重表达)Entity Engine(code generator,both database and programs)Data Analysis(提供了一个扩展性)Content Management(提供了一个扩展性)Knowledge Management(提供了一个扩展性)Basic Technology Components Foundation T
9、echnology Security Human Communication Integration&Connection Development Tools Quality Assurance 链链接:接:The Open For Business Project:Architecture Overview Diagrams14.相关评论Keywords:ofbizhttp:/ofbizwiki.go- Source Software OverviewOFBiz ArchitectureThe Open For Business Project:Foundation Technology H
10、ow To Developing Enterprise Applications Using OFBiz16.资源获取J2se1.4.X http:/ 3.Xhttp:/www.eclipse.orgDownload Subversion(版本控制工具,支持internet)http:/subversion.tigris.org/Download source http:/svn.ofbiz.org/Download Microsoft SQL Server 2000 Driver for JDBC(本ppt附件中)17.环境设置(也可以参考附件:OFBizBasicProductionSet
11、up.pdf)系统变量(根据你的机器设置,以上仅仅是示例)set JAVA_HOME=D:javaj2sdk1.4.2_07set OFBIZ_HOME=D:javaofbizpath 包含D:javaj2sdk1.4.2_07bin编译http:/ofbizwiki.go- build.xml 取消自动编译(因为项目过大)测试http:/127.0.0.1:8080/ecommerce https:/127.0.0.1:8443/webtools Admin/ofbizWebtools提供了一个运行时配置系统的途径19.Configuration&Deployment Overview1.C
12、hoosing and Setting Up a Database2.Choosing and Setting Up an Application Server3.OFBiz Configuration1.entityengine.xml1.Transaction Manager Setup2.Database Setup2.serviceengine.xml 3.Other Configuration Files1.debug.properties2.serverstats.properties3.cache.properties4.jndiservers.xml 20.Example参考原
13、创 Ofbiz 入门教程 需要修改以下工作添加到party应用数据库模式21.(1)entitymodel.xml 22.(2)entitygroup.xml 重新启动,即可发现stuProductSale存在于数据库中了23.jsphelloworld.jsp24.controller.xml Test Ofbiz 25.可能的风险Java学习效率书写数据库的schema是否有UI方式Neogia OFBiz-Generators:http:/neogia.labs.libre-entreprise.org/neogia-generators/index.html远程调试需要尝试简化版本现有的应用程序功能并不适合国情界面方面http:/






