To add the ATGProductionDS
datasource to the ATGStaging
server:
In a text editor, open the
JB
oss-home
\standalone\configuration\ATGProduction.xml
file.Copy the
<xa-datasource>
element for theATGProductionDS
datasource, which will look similar to the following:
<xa-datasource enabled="true" jndi-name="java:/ATGProductionDS" pool-name="ATGProductionDS" use-java-context="true"> <xa-datasource-property name= "URL">jdbc:sqlserver://localhost:1433;databaseName=name
; sendStringParametersAsUnicode=false;</xa-datasource-property> <xa-datasource-property name="User">name
</xa-datasource-property> <xa-datasource-property name="Password">password
</xa-datasource-property> <xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource </xa-datasource-class> <driver>sqljdbc4.jar</driver> <security> <user-name>name
</user-name> <password>password
</password> </security> <xa-pool> <min-pool-size>5</min-pool-size> <max-pool-size>100</max-pool-size> <is-same-rm-override>false</is-same-rm-override> </xa-pool> <timeout> <blocking-timeout-millis>5000</blocking-timeout-millis> <idle-timeout-minutes>15</idle-timeout-minutes> </timeout> <!-- To avoid deadlocks you need set this --> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> </xa-datasource>
In a text editor, open the
JBoss-home
\standalone\configuration\ATGStaging.xml
file.Paste the
<xa-datasource>
element into the file so that it is a sub-element of the<datasources>
element (it should be a peer of theATGStagingDS
<xa-datasource>
element) and save the file.