XATransactions and Cloudscape
polman Jun 26, 2002 8:29 PMHi all,
I'm trying to get JBoss 3.0.0 configured to
use my own resource adapter for an XML database
product in combination with cloudscape using
XATransactions. Deployment of the xml database
works fine. However, I'm having some trouble
with my cloudscape-service.xml file.
It looks like this:
----------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- Cloudscape connectionmanager -->
<!-- ==================================================================== -->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
cloudscapeDB
<config-property name="ConnectionURL" type="java.lang.String">jdbc:rmi://localhost:1098/jdbc:cloudscape:CLOUDSCAPE;create=true</config-property>
<config-property name="DriverClass" type="java.lang.String">COM.cloudscape.core.RmiJdbcDriver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">Administrator</config-property>
<config-property name="Password" type="java.lang.String">secret</config-property>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<depends optional-attribute-name="ManagedConnectionPool">
0
50
5000
15
<!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are
ByContainerAndApplication (use both),
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
reauthentication)-->
ByContainer
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager
java:/TransactionManager
jboss.jca:service=RARDeployer
-------------------------------------------------
The line
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
seems to be the problem (I want XATransactions, not
LocalTransactions)
In a half-serious attempt I replaced it with:
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva JDBC XATransaction ResourceAdapter
but this gives exceptions during JBoss startup.
Can anybody help? Thanks in advance
--MP--