citerus / dddsample-core

This is the new home of the original DDD Sample app (previously hosted at sf.net)..
MIT License
4.94k stars 1.47k forks source link

Modernize Spring bean usage for messaging and persistence packages #58

Closed orende closed 1 year ago

orende commented 1 year ago

Why

The messaging package is using an XML file to define and configure beans, Active MQ queues, connections and JMS listeners. This is an obsolete way of working with Spring and should be modernized for improved readability. The persistence package does the same for its repositories, db connections and transaction managers.

What

Replaces the bean definition XML files with annotation-based definition and injection of Spring beans. Also moves configuration from XML into the application.properties file.

This PR does not replace the Hibernate XML mapping files. Due to the complexity of this, it will be left for a future PR.