It's probably only part of the problem, but the first thing I note
is that you're not using "com.evermind.sql.ConnectionDataSource".
That's what you use when your jdbc driver is jdbc2 compliant (if
my understanding is correct...).
Other than that I don't see anything glaringly wrong...
Gary
Today, Daniel Cardin ([EMAIL PROTECTED]) wrote:
> Well... it seems I just can't make it work, even though I have read just
> about all the messages on the subject.
>
> datasources :
>
> <data-source
> class="com.evermind.sql.DriverManagerDataSource"
> name="ddsNP"
> location="jdbc/ddsNP"
> xa-location="jdbc/xa/ddsXANP"
> ejb-location="jdbc/ddsNP"
> connection-driver="com.inet.tds.TdsDriver"
> username="sa"
> password=""
> url="jdbc:inetdae7:theserver:1433?database=test"
> inactivity-timeout="30"
> schema="database-schemas\ms-sql.xml"
> />
> <data-source
> class="com.evermind.sql.OrionPooledDataSource"
> name="dds"
> location="jdbc/ddsDS"
> xa-location="jdbc/xa/ddsXADS"
> ejb-location="jdbc/ddsDS"
> max-connections="2"
> source-location="jdbc/ddsNP"
> pooled-location="jdbc/ddsDS"
> username="sa"
> password=""
> inactivity-timeout="30"
> connection-driver="com.inet.tds.TdsDriver"
> url="jdbc:inetdae7:theserver:1433?database=test"
> />
>
> the code
>
> DataSource ds = (DataSource)ctx.lookup("jdbc/ddsNP"); // have used
> jdbc/ddsDS as well...
>
> the lookup returns an OrionCMTDataSource
>
> but the call to getConnection()
>
> DatabaseMetaData dmd = ds.getConnection().getMetaData();
>
> raises :
>
> java.lang.NullPointerException
> at com.evermind.sql.OrionPooledDataSource.d8(JAX)
> at com.evermind.sql.ak.eo(JAX)
> at com.evermind.sql.ak.ep(JAX)
> at com.evermind.sql.ap.getMetaData(JAX)
> at dds_testclient.Frame1.dsTest(Frame1.java:81)
>
> Hints anyone ?
>
> Thanks!
>
> Daniel
>
>
>
>