Menu

#79 XADSLoader to ConnectionFactoryLoader

v3.0 (Rabbit Hole)
open
nobody
None
5
2001-08-16
2001-08-16
No

I replaced the implementations of XADataSourceLoader
and JDBCDataSourceLoader with "wrappers" that create,
configure, and delegate to ConnectionFactoryLoaders
using the Minerva Resource Adapters. You can save
(using configuration service SaveConfiguration button)
the jmx state and replace the XADataSourceLoader config
with the new ConnectionFactoryLoader config in your
jboss.jcml files.

The jboss.jcml shows a before and after and contains
instructions. The XADataSourceLoader also logs simple
instructions.

Mapping is as follows:

XADataSourceLoader with XADataSourceImpl wrapping a
jdbc 1 driver ---> ConnectionFactoryLoader using
jboss-jdbc.rar, using the Minerva LocalTransaction
connection manager.

XADataSourceLoader with another XADataSource --->
ConnectionFactoryLoader using jboss-xa.rar, using
Minerva XATransaction connection manager.

JDBCDataSourceLoader ----> ConnectionFactoryLoader
using jboss-jdbc.rar, using the Minerva NoTransaction
connection manager.

Other changes:

jboss-xa.rar now exists. The parts were all there, for
some reason noone had written the ra.xml and assembled it.

The two .rar's now contain all (and exactly) the
classes they need. jbosspool.jar also does not contain
classes belonging in a resource adapter.

The Connection wrappers and PreparedStatement pooling
classes are now in the connector/jdbc/ package and
included in the jdbc.rar.

The pool/jdbc/... classes have been removed since they
are not needed without XADataSourceLoader.

RawXADataSourceLoader has been removed since you can
specify the XADataSourceClass in the jboss-xa.rar
configuration.

Bill's transaction isolation code has been added to the
jboss-jdbc.rar. I had no way to test it with the
jboss-xa.rar and have not yet added it there. Complain
if you need it.

There are some feeble beginnings of documentation in
manual/src/docs/resource.xml

This will probably quickly show up some bugs in the jca
framework and resource adapters. For instance, I
discovered a race condition when running banktest
against Hypersonic. PLEASE REPORT PROBLEMS!

Thanks
david jencks

Discussion


Log in to post a comment.