Skip to content

Illustration of how the difference between XML based and annotation based context configuration in Spring leads to different behaviours, by attempting to setup a connection to a Solace message bus through JNDI lookups.

Notifications You must be signed in to change notification settings

hakanozbay/spring-xml-vs-annotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring: XML vs annotation context configuration

This is an illustration of how the difference between XML based and annotation based context configuration in Spring leads to different behaviours, by attempting to setup a connection to a Solace message bus through JNDI lookups. This highlights that XML based conifguration represents true Inversion Of Control characteristics by creating its object graph at runtime, wheras annotation based configuration creates its object graph at compile time, which weakens its Inversion Of Control capabilities and identity.

This codebase does not compile (due to an intentional compilation error) and is not in any form of an executable and functional application. This repository exists to complement the content of my blog post Spring: XML vs Annotation configuration - why XML is still relevant

About

Illustration of how the difference between XML based and annotation based context configuration in Spring leads to different behaviours, by attempting to setup a connection to a Solace message bus through JNDI lookups.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages