Anyone have a working config template for configuring a XA datasource with in
JBOSS3.0.4 / sapdb 7.4.x drivers ?
I've tried one posted some time ago in this list put when the datasource get
deployed I get the warning "no service interface implemented" and a null
pointer exception ASA there's a connection to the database.
FYI I'll attach my configuration here.
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager" name="jboss.jca:service=XATxCM,name=OBDBXADS">
<!--
<attribute name="SecurityDomainJndiName">Oasibase3DbRealm</attribute>
-->
<!--make the rar deploy! hack till better deployment-->
<depends>jboss.jca:service=RARDeployer</depends>
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=XATxDS,name=OBDBXADS">
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva JDBC XATransaction ResourceAdapter</depends>
<!--real attributes-->
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="XADataSourceProperties" type="java.lang.String">DatabaseName=OBDB;ServerName=localhost</config-property>
<config-property name="XADataSourceClass" type="java.lang.String">com.sap.dbtech.jdbcext.XADataSourceSapDB</config-property>
<!--set these only if you want only default logins, not through JAAS
-->
<config-property name="UserName" type="java.lang.String">jboss</config-property>
<config-property name="Password" type="java.lang.String">jboss</config-property>
</properties>
</attribute>
<attribute name="JndiName">OBDBDS</attribute>
</mbean>
</depends>
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
name="jboss.jca:service=XATxPool,name=OBDBXADS">
<attribute name="MinSize">10</attribute>
<attribute name="MaxSize">50</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
<attribute name="Criteria">ByContainer</attribute>
</mbean>
</depends>
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
</mbean>
</server>