1. Organizing OSGi components
(1) ORGANIZING THE DEPENDENCIES
The WAR Structure:
■ It’s a ZIP file
■ Downloadable resources (images, JavaScript files) are located at the root of the WAR
■ Application classes (servlet, web controllers) are located in WEB-INF/classes
■ Libraries and frameworks (packaged as JAR files) are in WEB-INF/lib
Thanks to OSGi's sophisticated classloading mechanisms, OSGi supports this scenario out of the
box:
different versions of the same library can coexist in a container.
(2) ORGANIZING THE APPLICATION
Some guidelines for developing OSGi applications:
■ Separate the static components from the dynamic components:
(1)Static components are bundles that define APIs by exporting interface-based Java packages.
These bundles don’t contain a Spring application context (or a BundleActivator) and don’t register
or reference any OSGi services.
(2)Dynamic components are bundles that import Java packages from static bundles, provide
implementations, and usually register OSGi services.
As this is a Spring DM book, these bundles
are Spring-powered.
■ Design Layered Application: (用SOA设计的思想设计)
Perhaps exporting the packages of data access object (DAO) interfaces is useless, because what
we’re really interested in is the business services.
Remember, OSGi is sometimes referred to as
a service-oriented architecture (SOA) in a JVM.
We can still define the service API, but the
implementation can hide its inner workings.
We can then reorganize our bundles in a simpler way
and gather the service implementation and data access layer in the same bundle—the backend
bundle.
2. Defining interactions between application bundles
分享到:
相关推荐
Spring MVC Designing Real-World Web Applications 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Spring MVC Designing Real-World Web Applications 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Spring MVC Designing Real-World Web Applications 英文无水印pdf pdf使用FoxitReader和PDF-XChangeViewer测试可以打开
Systems Programming --- Designing and Developing Distributed Applications
sun工程师帮你分析j2EE构架
《Designing Data Intensive Applications》英文mobi版;今年的神书,知乎上大神推荐,玩转大数据必看的书。
Want to know how the best software engineers and architects structure their applications to make them scalable, reliable, and maintainable in the long term? This book examines the key principles, ...
Designing Data-Intensive Applications 中文 epub 版本
设计数据敏感型应用,对多种存储组件进行分析,可以用于存储组件的技术选型,深入理解各种存储组件的优劣:Data-intensive applications are pushing the boundaries of what is possible by making use of these ...
微服务从设计到部署-designing-and-deploying-microservices,designing-and-deploying-microservices,中文版
Designing Data-Intensive Applications-The Big Ideas Behind Reliable,Scalable and Maintainable Systems——大数据精选,要译本继续关注我
MCITP 70-442-designing-and-optimizing-data-access-by-using-microsoft-sql-server
THE J2EE platform specifies technologies to support multitier enterprise applications. These technologies fall into three categories: component, service, and communication. The component technologies ...
html-xhtml-and-css-your-visual-blueprint-for-designing-effective-web-pages
藏经阁-An-ACE-Up-The-Sleeve-Designing-Active-Directory-DACL-Backdoors.pdf
请复制该连接:https://pan.baidu.com/s/1slqjTDF ,下载.txt文档后,密码在文档中,直接粘贴即可下载,感谢支持
exam-az-400-designing说明书
1.Designing Data-Intensive Applications The Big Ideas Behind Reliable Scalable And Maintainable Systems 2017; 2.英文原版,PDF格式; 3.内容简介: If you develop applications that have some kind of server/...
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems Want to know how the best software engineers and architects structure their applications to ...
ug939-vivado-designing-with-ip-tutorial很不错的资料