• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Is this true: JNDI equals Connection Pooling

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have JNDI set up in my Tomcat server.xml and working with an Oracle 9i database for my web app. Is JNDI equal to Connection Pooling? If so I assume I have successfully implemented Connection Pooling for my web app?
[ November 19, 2007: Message edited by: Ed Carrington ]
 
author & internet detective
Posts: 42055
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ed Carrington:
Is JNDI equal to Connection Pooling?


No. The JNDI is a place to look up the connection pool resource.


If so I assume I have successfully implemented Connection Pooling for my web app?


If you are doing a JNDI lookup to get the connection pool, you have successfully implemented connection pooling.
 
Author
Posts: 3473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is an intrface to directory servers like LDAP etc. For example JDBC is an interface to your database servers. Likewise JNDI is an interface to directory servers like LDAP. Using JNDI you can look up objects, user credentials, printer information etc stored in the underlying LDAP implementations. LDAPs are generally faster to search than Database servers.

You can also look up JDBC connection pools, JMS queues etc using JNDI. Most application servers have a JNDI implementation to facilitate lookups.
[ November 19, 2007: Message edited by: arulk pillai ]
 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,

So this below example is how JNDI lookups a connection pool?

server.xml(C:\jakarta-tomcat-4.1.27\conf)



web.xml





database connection part

[ November 19, 2007: Message edited by: Ed Carrington ]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic