|
|
Re: JDBC connection trouble
|
Posted: Jan 19, 2005 2:22 PM
|
|
That's just it - in the code, you don't have any kind of bridge defined for your jdbc driver. Depending on your database, the exact format of your jdbc:odbc:<whatever> line will be different; but don't confuse that with the database name - they're two different things and can't be used interchangably. It seems you're trying to set up a JNDI Context sort of thing - but that doesn't have to be the same thing as what's in your definition of a JDBC driver. I would think the API for getConnection()would show you the difference - one is often used in that, the other in what you do with a Context and your DataSource definition.
Lynn.
|
|