Announcement Announcement Module
Collapse
No announcement yet.
Newbie question: What am I missing? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Newbie question: What am I missing?

    Hi,

    I'm evaluating Spring with Hibernate for a new project I'm working on. I've read through a couple of online articles that discuss using the two together including:

    http://www.onjava.com/pub/a/onjava/2...ngwebapps.html

    and

    http://hibernate.bluemars.net/110.html

    But I must be missing something. The articles seem to imply that you need elements in the Spring configuration file for every DAO and every business service object in the system (possibly dozens or hundreds, right?). But the "wiring" for each is almost identical: All DAOs get a session factory, and all service objects get a transaction manager and a reference to the DAO(s).

    Doesn't all this mean that the Spring configuration file is extremely redundant and difficult to maintain for a large app? I don't understand how this is "cleaner" than wiring together the objects in code.

  • #2
    perhaps this may help Cleaner and More Concise Transaction Definitions in Spring 1.1

    you can apply the same pattern to your DAO, Services...

    Comment


    • #3
      Thanks. It also looks like auto-wiring would address this.

      Comment

      Working...
      X