Hi,
When you configure a new datasource using the weblogic
console there is a field called the jndi name.
Here you would have given ("jdbc/what-ever-you-wrote")
and also filled up the next textfield pointing this
data-source to use a pre-configured Connection Pool
(say demoPool).
So when you want to get a connection from this Pool of
Connections, you call this pool by it's jndi name and
just say "hey jndi-name give me a connection". You
would get the connectiion you want becoz this jndi
name has been mapped to your pool. On the server-side
there is no way you can say "hey connection-pool give
me a connection"
The concept of JNDI was introduced mainly to tag
resources like Connection Pools, JMS Strores etc, so
that one call them from anywhere anytime. (Very
Simplistic defination)
For more clarity start examples server and see
1. demoPool under ConnectionPools
2.examples-dataSource-demoPool under DataSources
________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html