Pro SpringSource dm Server (eBook)
288 Seiten
Apress (Verlag)
978-1-4302-1641-4 (ISBN)
The SpringSource dm Server™ is a completely modular, OSGi-based Java server designed to run enterprise Java applications and Spring-powered applications with a new degree of flexibility and reliability. The SpringSource dm Server is based on the SpringSource Dynamic Module Kernel™ (dm Kernel). The dm Kernel provides a module-based backbone for the server, which also harnesses the power of Spring, Apache Tomcat, and OSGi-based technologies.
Pro SpringSource dm Server™ is the first book available for learning how to develop and deploy modular applications to run on the SpringSource dm Server 2.0 deployment platform.
- This book covers everything you need, from basic OSGi concepts to developing and deploying OSGi-based applications on the SpringSource dm Server.
- This book demonstrates how to migrate an existing web application from a standard WAR to a shared libraries WAR, a shared services WAR, and finally a web module.
- The topics in this book are introduced by complete and real-world examples that you can follow step by step. Instead of abstract descriptions on complex concepts, you will find live examples in this book.
Gary Mak, founder and chief consultant of Meta-Archit Software Technology Limited, has been a technical architect and application developer on the enterprise Java platform for more than seven years. He is the author of the Apress books Spring Recipes: A Problem-Solution Approach and Pro SpringSource dm Server. In his career, Gary has developed a number of Java-based software projects, most of which are application frameworks, system infrastructures, and software tools. He enjoys designing and implementing the complex parts of software projects. Gary has a master's degree in computer science. His research interests include object-oriented technology, aspect-oriented technology, design patterns, software reuse, and domain-driven development. Gary specializes in building enterprise applications on technologies including Spring, Hibernate, JPA, JSF, Portlet, AJAX, and OSGi. He has been using the Spring Framework in his projects since Spring version 1.0. Gary has been an instructor of courses on enterprise Java, Spring, Hibernate, Web Services, and agile development. He has written a series of Spring and Hibernate tutorials as course materials, parts of which are open to the public, and they're gaining popularity in the Java community. In his spare time, he enjoys playing tennis and watching tennis competitions.
The SpringSource dm Server(TM) is a completely modular, OSGi-based Java server designed to run enterprise Java applications and Spring-powered applications with a new degree of flexibility and reliability. The SpringSource dm Server is based on the SpringSource Dynamic Module Kernel(TM) (dm Kernel). The dm Kernel provides a module-based backbone for the server, which also harnesses the power of Spring, Apache Tomcat, and OSGi-based technologies. Pro SpringSource dm Server(TM) is the first book available for learning how to develop and deploy modular applications to run on the SpringSource dm Server 2.0 deployment platform. This book covers everything you need, from basic OSGi concepts to developing and deploying OSGi-based applications on the SpringSource dm Server. This book demonstrates how to migrate an existing web application from a standard WAR to a shared libraries WAR, a shared services WAR, and finally a web module. The topics in this book are introduced by complete and real-world examples that you can follow step by step. Instead of abstract descriptions on complex concepts, you will find live examples in this book.
Gary Mak, founder and chief consultant of Meta-Archit Software Technology Limited, has been a technical architect and application developer on the enterprise Java platform for more than seven years. He is the author of the Apress books Spring Recipes: A Problem-Solution Approach and Pro SpringSource dm Server. In his career, Gary has developed a number of Java-based software projects, most of which are application frameworks, system infrastructures, and software tools. He enjoys designing and implementing the complex parts of software projects. Gary has a master's degree in computer science. His research interests include object-oriented technology, aspect-oriented technology, design patterns, software reuse, and domain-driven development. Gary specializes in building enterprise applications on technologies including Spring, Hibernate, JPA, JSF, Portlet, AJAX, and OSGi. He has been using the Spring Framework in his projects since Spring version 1.0. Gary has been an instructor of courses on enterprise Java, Spring, Hibernate, Web Services, and agile development. He has written a series of Spring and Hibernate tutorials as course materials, parts of which are open to the public, and they're gaining popularity in the Java community. In his spare time, he enjoys playing tennis and watching tennis competitions.
Contents at a Glance 5
Contents 6
About the Authors 12
About the Technical Reviewer 13
Acknowledgments 14
Introduction 15
1 Introduction to OSGi 19
Setting Up the Development Environment 19
Why You Need OSGi 21
Introducing OSGi 30
Developing OSGi Bundles 33
Deploying OSGi Bundles 43
Versioning Packages in Bundles 50
Developing OSGi Services 54
Enterprise OSGi 72
Summary 73
2 Developing Bundles with Spring Dynamic Modules 75
Introduction to Spring-DM 75
Application Contexts of an Enterprise Application 77
Application Contexts of Bundles 77
Exporting a Spring Bean as an OSGi Service 79
Importing an OSGi Service Reference as a Spring Bean 79
Setting Up Spring-DM 79
Creating Bundles Using Spring-DM 88
Creating the Rate Interface Bundle 88
Creating the Fixed-Rate Implementation Bundle 89
Creating the Interest Interface Bundle 90
Creating the Simple Interest Implementation Bundle 91
Configuring Spring-DM for the Fixed-Rate Implementation Bundle 92
Configuring Spring-DM for the Simple Interest Implementation Bundle 93
Advanced Spring-DM Configurations for OSGi Services 97
Specifying a Ranking for an OSGi Service 100
Specifying Properties for an OSGi Service 101
Summary 101
3 Introduction to the dm Server 103
What Is the dm Server? 103
Why Do You Need the dm Server? 105
Introducing the dm Server’s Features 109
Introducing the dm Server’s Architecture 121
Summary 122
4 Getting Started with the dm Server 123
Installing the dm Server 123
Exploring the dm Server’s Installation Directory 125
Running the dm Server 126
Clean Starting 127
Starting in the Debug Mode 128
Starting with JMX Enabled 129
Using the Administration Console 133
Deploying Applications to the dm Server 135
Configuration Files 138
Managing the Provisioning Repository 139
Finding Bundles and Libraries from the SpringSource Enterprise Bundle Repository 141
Installing Bundles 142
Installing Libraries 142
Summary 147
5 Developing Applications for the dm Server 148
Installing and Configuring dm Server Tools 148
Application Architecture for the dm Server 156
Creating Platform Archives with Bundles 159
Developing OSGi Bundles for the dm Server 162
Setting Up the Application Database 162
Defining a Data Source in the Infrastructure Bundle 166
Developing Web Bundles for the dm Server 186
Deploying Applications in the dm Server Tools 199
Exporting Applications Using the dm Server Tools 201
Summary 207
6 Migrating Web Applications to the dm Server 208
Introduction to the Migration Path 208
Standard WAR Files 210
Shared Libraries WAR Web Bundles 223
Shared Services WAR Web Bundles 226
Web Bundles Within PAR Files 232
Summary 235
7 Tracing Applications on the dm Server 236
Introduction to the dm Server’s Serviceability 236
Configuring Serviceability for the dm Server 241
Tracing Application Output and Logs 243
Summary 252
8 Managing Application Growth on the dm Server 253
Application Constructs for Managing Growth 253
Tools for Managing Growth 263
SpringSource Slices for Managing Growth 274
Summary 278
Index 279
Erscheint lt. Verlag | 19.11.2009 |
---|---|
Zusatzinfo | 288 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Mathematik / Informatik ► Informatik ► Theorie / Studium | |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | Apache • Apache Tomcat • Deployment • Java • Technology |
ISBN-10 | 1-4302-1641-7 / 1430216417 |
ISBN-13 | 978-1-4302-1641-4 / 9781430216414 |
Haben Sie eine Frage zum Produkt? |
Größe: 7,3 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich