New England Software Symposium - September 11 - 13, 2009 - No Fluff Just Stuff

WAR and Pieces: Breaking down monolithic web applications with Spring-DM and OSGi

New England Software Symposium

Boston · September 11 - 13, 2009

You are viewing details from a past event

About this Presentation

In this session, we'll explore modular web application development using Spring-DM and OSGi. I'll dispel the myth that OSGi is hard and show you tips and tricks that make Spring-DM and OSGi development easy.

WAR files, the workhorse standard deployment unit for Java web applications, has been looking a little portly for a long time. Most WAR files contain not only servlets and JSPs, but are usually well-endowed with static content (such as CSS, JavaScript, and images), middle and backend support classes, and a WEB-INF/lib directory chock-full of third party libraries. Even simple web applications can carry around several megabytes worth of baggage.

Monolithic WAR files present some practical issues, including:

  • Every WAR file carries its own copy of embedded libraries, increasing the footprint of each web application.
  • Parallel development of application modules is hindered, as all modules ultimately are deployed as a single unit.
  • Application modularity itself is not enforced, allowing for tight coupling between application layers.

The solution to monolithic WAR files is rather simple: Break them into smaller, more easily managed modules. OSGi makes this possible–Spring-DM makes it easy.

Come see how to apply Spring and OSGi to be able to split web applications into pieces that can be developed, tested, deployed, and managed independent of each other.

Craig Walls

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.