• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

tried implementing spring IOC in my Sample application. Please advice whether this way is correct?

 
Ranch Hand
Posts: 2624
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am learning Spring. I did sample Program on spring IOC and tried to apply this in my practical use. There is a Struts-Hibernate application where I tried to introduce spring IOC and it worked fine. What I want to know is whether this is a proper valid use case for using Spring IOC. This is what I did: The DAO object in struts action class which was created with new operator , I replaced this with just creating reference and creating a Settor for it. I defined this in applicationcontext.xml. This way DAO is getting set using Spring IOC. My functionality is working fine but is it correct way I did?

thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic