• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

how come we are able to achieve Spring IOC without SpirngIOC.jar

Ranch Hand
Posts: 1647
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring IOC is used to remove the tight coupling by avoiding object creation inside a class and instead doing it from bean.For ths we would require Spring IOC Jar.

Now I have a doubt...

Suppose we dont use Spring IOC jar ..we use only Spring.jar and use ClassPathResource and XMLBeanFactory we are still accomplising the same thing...

suppose there is a hello bean

<bean id="hello" class=HelloImpl

<property name="greeting"


Resource res=new classPathResource("hello.xml")
Beanfactory factory=new xmlBeanFactory(res)
Hello bean1=(Hello) factory.getBean("hello")


Class HelloImpl
public sayHello(String temp)


Now are we not accomplising the same thing as Spring IOC without using Spring IOC Jar...?

we are getting the SayHello objects not inside Class but using Bean.Is this not same we achieve in Spring IOC...?

If so then how are we able to achieve the same without using SpringIOC jar.?

Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags

I am sorry but I really don't understand your question. Spring IOC JAR and Spring JAR? What is it you are trying to accomplish what version of Spring are you using? Is this a stand alone app or a web app?
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic