Hello,
why do you use the same location for location and ejb-location? 
That might not be a good idea.

/Niklas Uhrberg
-----Ursprungligt meddelande-----
Från: Daniel Cardin <[EMAIL PROTECTED]>
Till: Orion-Interest <[EMAIL PROTECTED]>
Datum: den 29 januari 2001 17:29
Ämne: Pooled Data Source


>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
>
>
>


Reply via email to