This is my getconnection code. i am using javax.sql.DataSource
ctx = new InitialContext();
System.out.println("ctx : " + ctx);
String lookupstring = "java:/OracleDS";
DataSource ds = (javax.sql.DataSource)
ctx.lookup(lookupstring);
System.out.println("ds : " + ds);
return ds.getConnection();
I saw the jboss mailing list and some one wrote to use RawXADataSourceLoader
with Datasourceclass as oracle.jdbc.xa.client.OracleXADataSource in
jboss.jcml
I tried that but that didn't work either.
>From: "danch (Dan Christopherson)" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] java.lang.ClassCastException:
>org.opentools.minerva.jdbc.xa.XAPoolDataSource
>Date: Fri, 01 Jun 2001 12:51:11 -0500
>
>Minal T wrote:
>
>> java.lang.ClassCastException:
>>org.opentools.minerva.jdbc.xa.XAPoolDataSo
>>urce
>>[EmbeddedTomcat] java.lang.ClassCastException:
>>org.opentools.minerva.jdbc.xa.XAP
>>oolDataSource
>>[EmbeddedTomcat] at
>>examples.ejb.beans.session.GenStorage.getDBConnection
>>(GenStorage.java:164)
>
>
>What are you trying to cast the datasource to here? You should just
>treat it as a javax.sql.DataSource, otherwise you'll have portability
>problems even when you do get it to work in JBoss.
>
>-danch
>
><< InterScan_Disclaimer.txt >>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user