- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
[经济学]OSGi in action
OSGi in action Agenda Use OSGi with popular framework Deploy exist system to OSGi The feature of OSGi application OSGi application design best practices OSGi application develop best practices Resources Use OSGi with popular framework Use with Hibernate Use with Spring Use with Webwork Intergration key factors Use with Hibernate Download Hibernate-OSGi /Hibernate-OSGi; install .osgi.hibernate bundle or import Hibernate-OSGi source project to eclipse. Write demo bundle with Hibernate-OSGi to use Hibernate Use with Hibernate Change the connection info in hibernate.cfg.xml of .osgi.hibernate bundle; New Plug-in project,and write persistent class as you always do,then generate persistent class hbm file; Implemention DAO class with .osgi.hibernate.service.CommonDaoService or other common Hibernate DAO API; Use with Hibernate Register Persistent class as extension point; create plugin.xml,then input following content into the file,just like this: extension point=“.osgi.hibernate.PoExtension po class=.osgi.bulletin.po.Bulletin/ /extension Start the application,then finish the demo that use OSGi with Hibernate Use with Hibernate Summary the difference between use with hibernate and use with OSGi hibernate only two sides: don’t add resource mapping element to hibernate.cfg.xml any more; Use extension point to register po. Use with Hibernate The implemention method of Hibernate-OSGi Refactor AbstractClassGenerator.getClassLoader() method to sure use the AbstractClassGenerator class’s classloader to load the associate class Why do this? Just because AbstractClassGenerator use po class’s classloader to load cglib associate class,but now the bundle including po class don’t need import cglib jar. Based on extension point to register/unregister po Why do this? Just because module seperation rule. Use extension point so we can register po outside of HibernateModule. The session service use Configuration.addClass to register po from other bundle. Use with Hiber
您可能关注的文档
- [经济学]8-15课模板作文及指导说明 1.doc
- [经济学]8-10贸易政策的选择.ppt
- [经济学]7章 配送作业.ppt
- [经济学]8_广告媒介策划.ppt
- [经济学]8城市土地经济.ppt
- [经济学]8因子分析2009-5修订.ppt
- [经济学]8国际收支理论.ppt
- [经济学]8第8章国民收入的核算西方经济学.ppt
- [经济学]8金融中介概述.ppt
- [经济学]9 外汇市场.ppt
- [经济学]PISR2-PPT04-保险的基本原则.ppt
- [经济学]QS知识培训.ppt
- [经济学]SCM信息技术.ppt
- [经济学]Six Sigma Introduction-alick.ppt
- [经济学]SNA——第二章L.ppt
- [经济学]Stanford的博弈论讲义.doc
- [经济学]Slides_非平稳时间序列.ppt
- [经济学]Stephen D Williamsons Macroeconomics_ Third Edition ch2_slides_trans.pdf
- [经济学]tyl金融市场学第一章概述.ppt
- [经济学]Unit 5 Sending Proforma Invoice.ppt
最近下载
- 质量、环境、职业健康安全管理体系内审员培训-试卷.doc VIP
- 5G网络切片计费策略-深度研究.pptx
- 《慢性肾脏病相关心肌病综合管理中国专家共识(2024版)》解读.pptx VIP
- 标准课程HSK4第十三课教案.docx VIP
- GB4789-3-2016大肠菌群计数培养基原理解析.docx VIP
- 心理健康症状自评量表SCL(完整版).pdf VIP
- 22S804 矩形钢筋混凝土蓄水池.pdf
- 木工课程教学课件.ppt VIP
- 一文读懂《公平竞争审查条例》PPT课件.pptx VIP
- 2025年山东省网络安全工程专业职称考试(网络生态建设与治理·中级)历年参考题库含答案详解(5卷).docx VIP
文档评论(0)