• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

What is the difference between Connection Pooling and Object Pooling

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one specify the difference between Connection Pooling and Object Pooling.I have studied about Connection Pooling, like sharing one or two connections by more than one beans. But Object pooling...


Thanks
Mahendran
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Connection pooling is an specefic kind of object pooling .
in connection pooling we create some connections in a pool and give them to any client who need to use a connection , the the user turn back the connection to the pool after it complete its task.
connections remaining in the pool is configurable , you can configure how much time a connection should stay idel , pool size, time out , increment policy .....


in object pooling we create a pool of objects that are not easy to instaciate , we create them and put them in the pool , and when we want to use them there is no need to instanciate the Object again , instead we may change some of its properties.

usually pooling used when creating and destroying some objects are resource consumer.


hth
 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Mr.Masoud Kalali
reply
    Bookmark Topic Watch Topic
  • New Topic