Klikk på tall for å vise stripe
Toon 1Toon 2Toon 3Toon 4Toon 5Toon 6Toon 7Toon 8Toon 9Toon 10 JavaZone JavaZone

Environment aware spring context

6cd40f54-2ea8-4281-9fdd-7484e934bc41
View video  Presentation
Abstract:
When the Spring framework hit the marked, it revolutionized the way we build our applications. Dependency injection, and inversion of control became well known terms, and it is difficult to imagine how we managed without them. But there is one aspect of the Spring framework that has been fiercely discussed for a long time; What is the best approach to configuring our applications for deployment in multiple environments?
I have struggeled with this problem since my first encounter with the Spring framework, and over the years I have tried just about all the techniques there are. Some of them turned out to be bad - some of them turned out to be really bad. In this talk I will go through some of the techniques and approaches I have tried, and discuss their strengths and weaknesses.
Based on these trials and errors, I have put together a framework that aims to enhance the Spring container - enabling it to be differently configured for different target systems. I will demonstrate how you can use this framework to make your applications dramaticly easier to configure, easier to test, and less prone to malconfiguration in production and test environments.
Outline:
  • The ultimate goal
  • Configuration techniques that failed miserably
    • Using your build system for resource filtering
    • JNDI as configuration repository
    • Commons Configuration
    • The evil PropertyPlaceHolderConfigurer
  • Introducing the Stage Enabled Spring Contexts project
    • Brief introduction to annotation based configuration in Spring
    • Choosing implementation of services based on the running environment
    • Increase testablility
    • Configuration options
    • Handling property files
  • Customization options
  • Q&A - 10 min
Language:
English
Level:
Intermediate
Required experience:
Attendees will be expected to be experienced Java programmers with fairly good knowledge of the Spring framework. Experience with large scale enterprise applications would be a benefit.
Expected audience:
This session targets software architects and software developers, working on Spring based enterprise applications.
  • Photo of Kaare Nilsen
    Kaare Nilsen
    Kaare Nilsen is a principal consultant at Arktekk AS working as a software developer and architect. He has more than 10 years of programming experience and is currently focusing on Open Source, AOP and lightweight component architecture. He is a frequent presenter on various Java and Open Source topics, and training instructor on Spring courses.