<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- Datasource config for Postgres 8.x *** with XA transactions *** -->
<!-- ==================================================================== -->
<datasources>
<xa-datasource>
<jndi-name>memphisdb</jndi-name>
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">localhost</xa-datasource-property>
<xa-datasource-property name="PortNumber">5432</xa-datasource-property>
<xa-datasource-property name="DatabaseName">memphis</xa-datasource-property>
<xa-datasource-property name="User">memphis</xa-datasource-property>
<xa-datasource-property name="Password">memphis</xa-datasource-property>
<track-connection-by-tx></track-connection-by-tx>
</xa-datasource>
</datasources>
Montag, 27. Dezember 2010
Postgres XA Datasource - JTA - Distributed Transactions
Hier mal eine Beispiel-Datasource für JBoss und Postgres, wenn man verteilte Transaktionen über JTA nutzen möchte. Hierfür wird eine XA Datasource benötigt:
Abonnieren
Kommentare zum Post (Atom)


0 Kommentare:
Kommentar veröffentlichen
Hier kann jeder (auch unregistrierte) Leser seine Meinung kundtun...