Announcement Announcement Module
Collapse
No announcement yet.
Spring IoC and Service Lookup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring IoC and Service Lookup

    Hi,

    I am total newbie to Spring
    I have very basic question on Spring IoC, What is difference between Bean Injection and Context lookup in Java for Connection pool.

    When I do lookup I get object of connection pool and when I do IoC I get the Bean Object, then from architecture and design point of view what is difference?

    Thanks and Regards
    Prashant Saraf

  • #2
    Service Lookup - the logic on how to get the bean is in the bean needing the bean (call us, we don't call you)
    IoC - the logic on how to get the bean is external to the bean needing the bean (don't call us, we call you)

    I suggest a search on IoC and what the benefits are.

    Comment

    Working...
    X