From "Hello World" to Real World : Building Web Apps with Spring-DM
Pacific Northwest Software Symposium
Seattle · April 18 - 20, 2008
About this Presentation
As a matter of good design and best practice, we all know we should divide our application code into logical layers or modules that can be developed independent of each other. But if modularization is a good practice to follow as we write our code, why do we package it all up into a monolithic WAR file for deployment?
Breaking an application down into several well-defined modules affords developers many advantages, including:
* Easier parallel development
* Improved testability
* Substitutability of functionality
* Isolation of updates
Both a de facto standard and a proper standard, OSGi offers lightweight modularity to Java. Spring Dynamic Modules for OSGi (Spring-DM) brings the power of Spring to OSGi, making it possible to create, deploy, and wire OSGi components together without mucking about in the OSGi API. Together, Spring-DM and OSGi enable assembly of applications from fine-grained modules (known as bundles) that can be developed, deployed, and updated independent of each other. This combination of Spring and OSGi offers developers a refreshing lightweight component framework that is dramatically changing the enterprise Java landscape.
In this example-driven session, I'll show you the basics of building Spring-DM components, starting with a simple “Hello World” example and then ramping up quickly to a full-blown web application. You'll learn how to publish and consume services, how to extend bundles with OSGi fragments, and how to write integration tests against your component bundles.
Author of 'Spring in Action' and 'Spring AI in Action'
Craig Walls is a Principal Engineer, Java Champion, Alexa Champion, and the author of Spring AI in Action, Spring in Action, and Build Talking Apps. He's a zealous promoter of the Spring Framework, speaking frequently at local user groups and conferences and writing about Spring. When he's not slinging code, Craig is planning his next trip to Disney World or Disneyland and spending as much time as he can with his wife, two daughters, 1 bird and 2 dogs.