I've got first HA XA tests passing. Here is the ha-xa-datasource configuration 
I used for testing

  |    <ha-xa-datasource>
  |       <jndi-name>XADerbyDS</jndi-name>
  |       <track-connection-by-tx/>
  |       <isSameRM-override-value>false</isSameRM-override-value>
  | <!--      
<xa-datasource-class>org.apache.derby.jdbc.EmbeddedXADataSource</xa-datasource-class>
 -->
  |       
<xa-datasource-class>org.jboss.test.cmp2.advanced.ejb.DerbyXADataSource</xa-datasource-class>
  |       <xa-datasource-property 
name="URL">derby/hatest1|derby/hatest2</xa-datasource-property>
  |       <xa-datasource-property name="User">sa</xa-datasource-property>
  |       <xa-datasource-property name="Password"></xa-datasource-property>
  |       <xa-datasource-property 
name="CreateDatabase">create</xa-datasource-property>
  | 
  |       <url-delimeter>|</url-delimeter>
  |       <check-valid-connection-sql>VALUES CURRENT 
TIMESTAMP</check-valid-connection-sql>
  | 
  |       <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional) -->
  |       <metadata>
  |          <type-mapping>Derby</type-mapping>
  |       </metadata>
  |    </ha-xa-datasource>
  | 

As you can see, it's basically the same as in the local case, i.e. URL contains 
a list of URLs and url-delimeter specifies the delimeter.

The test is not added to the testsuite since we don't have derby in thirdparty 
(yet).

Implementation notes. XAManagedConnectionFactory creates XADataSources lazily, 
i.e. not at deployment time but on the first request. In the HA implementation, 
I create XADataSources at deployment. Is this ok? Any special reason for lazy 
instantiation except for "i don't use it, so i don't need it to be created"?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872172#3872172

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872172


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to