On Mon, Apr 09, 2001 at 11:20:36PM +0200, Shahar Solomianik wrote:
> Apart from things like that in my code (bmp entities and stateless sessions)
> :
> 
>       Context ctx = new InitialContext();
>       DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/OracleDB");
>       conn = ds.getConnection();

Hang on. Are you saying that the class oracle.jdbc.xa.client.OracleXADataSource
implements javax.sql.DataSource *and* javax.sql.XADataSource?

Do you have documentation on what this class actually implements?

It looks like Oracle's JDBC driver is doing some of the stuff that I said
it wouldn't. If this is working properly, then you need to be aware that
this is not in any way portable.

I still don't believe that transactions will work correctly, because the
JDBC driver doesn't have a hook into JBoss's transaction manager. Be
very, very careful before you decide it's working. I'd be interested to see
some debugging output from the transaction manager if you decide this is
working (set trace to true in TxCapsule or something, I think).

Toby.

>   <mbean code="org.jboss.jdbc.RawXADataSourceLoader"
> name="DefaultDomain:service=XADataSource,name=OraclePool">
>     <attribute name="PoolName">OraclePool</attribute>
>     <attribute
> name="DataSourceClass">oracle.jdbc.xa.client.OracleXADataSource</attribute>
>     <attribute
> name="Properties">URL=jdbc:oracle:oci8:scott/tiger@orcl</attribute>
>   </mbean>
> 
> Shahar.

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to