> * Any JDBC client webapp can instantiate a driver and get a Connection
> WITHOUT ANY DEFINITION TO THE server.xml or the web.xml as long as the
> driver jars are in /shared/lib or /<application>/WEB-INF/lib...True or
> False?

True.

>
> * For convenience, JDBC resources may be be defined to Tomcat as JNDI
> Data Sources to the default JNDI context provided by Tomcat,otherwise no
> config required...True or false?
>

Not quite. True, no other config is required if you use a connection created
by the application. But this is not a matter of just convenience. It creates
a connection pool from which connections are lent to your application. If
performance is not an issue, you can direct connect. But be aware that pages
will take longer to load due to the time required to establish the
connection with the database each time. Of course you can also use your own
connection pool.

A perfect example is my development platform is XP, but I am deploying to a
RH9 box. I have the Conn class check to see which machine it is on. When on
the server it looks for the JNDI but on XP it does a direct JDBC connection
as my IDE does't know about Tomcat. No other changes are required, just the
one if statement. Being slow in the IDE isn't a problem.

Yeah, I know, more than you asked for.

Doug Parsons
Sun Certified Programmer
Parsons Technical Services Inc.

> Best Regards,
>
> Michael Dean
> Sun Certified Programmer for the Java 2 Platform
> Washington State Department of Corrections
> ph: 360-664-8802
> fx:  360-664-3985
> mailto:[EMAIL PROTECTED]
>
> "I'm a sailor, of the waters and the sun,
>     I can fight the waves but have no weapons for the calm..."
> - "The Ship"
>
>
>
> Best Regards,
>
> Michael Dean
> Sun Certified Programmer for the Java 2 Platform
> Washington State Department of Corrections
> ph: 360-664-8802
> fx:  360-664-3985
> mailto:[EMAIL PROTECTED]
>
> "I'm a sailor, of the waters and the sun,
>     I can fight the waves but have no weapons for the calm..."
> - "The Ship"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to