Results 1 to 3 of 3

Thread: Newbie question: What am I missing?

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

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

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

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3

    Default

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

Similar Threads

  1. java.util.Properties Silly Newbie Question
    By robbiest in forum Container
    Replies: 4
    Last Post: Oct 25th, 2011, 05:49 AM
  2. Newbie Question - The Ideal Spring Solution
    By conorp in forum Architecture
    Replies: 3
    Last Post: Aug 23rd, 2005, 03:22 AM
  3. Newbie question: How to get spring debug logging on?
    By wangjammer5 in forum Container
    Replies: 2
    Last Post: Jul 15th, 2005, 07:11 AM
  4. Replies: 3
    Last Post: Apr 3rd, 2005, 04:34 PM
  5. Replies: 1
    Last Post: Mar 23rd, 2005, 07:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •