This content has been marked as final. Show 3 replies
Hi. An external client to WebLogic will never get a concrete driver class. It can
only get a proxy for the real connection that is back in the WLS engine. You
should be able to cast the proxy to any public Interface the original connection
implements, or any documented WebLogic.jdbc extension, but again, it can
never be the actual object.
A DataSource is an Interface. What the code gets from the jndi tree is some concrete object that
the code doesn't need to know the name of, or anything specific about it, as long as it implements
the DataSource Interface, which it successfully casts to, to allow calling the methods defined in the
DataSource Interface. If you call for a plumber, you don't need to know his name as long as you
can get a plumber, and can call the "Fix this leak" method, defined in the Plumber Interface.