covertind ds.xml to ra.xml in wildfly from jboss
armahdi Oct 14, 2015 12:47 AMhello All,
I am migrating my jboss app to wildfly and I need to configure my ds.xml file to ra.xml file. I understand the format is different so perhaps my question might seem very basic but i am new to this so any explanation will be appreciated.
My main confusion is with the <no-tx-connection-factory> and <tx-connection-factory> I have translated them to be <transaction-support>NoTransaction</transaction-support> and <transaction-support>LocalTransaction</transaction-support> respectively.
But this is Connection factory not Transaction support. I understand that <local-transaction>true</local-transaction> can be translated to <transaction-support>LocalTransaction</transaction-support> but I didn't find any documentation that would tell me how to translate <tx-connection-factory> . I will appreciate if some one can verify if this is the right transformation.
my ds.xml goes like this:
<connection-factories>
<no-tx-connection-factory>
<jndi-name>eis/loaderappnotx</jndi-name>
<adapter-display-name>Loader Adapter</adapter-display-name>
<local-transaction>false</local-transaction>
<application-managed-security/>
<min-pool-size>0</min-pool-size>
<max-pool-size>6</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>5</idle-timeout-minutes>
<config-property name="Endpoint" type="java.lang.String">AppServer://localhost:5163/insto-foappsrv</config-property>
<connection-definition>com.myComp.ProgressCommunictaorFactory</connection-definition>
<rar-name>ProgressCommunictaor-1.1.1.rar</rar-name>
</no-tx-connection-factory>
<tx-connection-factory>
<jndi-name>eis/loaderapptx</jndi-name>
<adapter-display-name>Loader Adapter</adapter-display-name>
<local-transaction>true</local-transaction>
<application-managed-security/>
<reauthentication-support>true</reauthentication-support>
<min-pool-size>0</min-pool-size>
<max-pool-size>6</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>5</idle-timeout-minutes>
<config-property name="Endpoint" type="java.lang.String">AppServer://localhost:5163/insto-foappsrv</config-property>
<connection-definition>com.myComp.progress.ProgressCommunictaorFactory</connection-definition>
<rar-name>ProgressCommunictaor-1.1.1.rar</rar-name>
</tx-connection-factory>
</connection-factories>
My ra.xml goes like this:
<resource-adapters>
<resource-adapter id="deployment.ProgressCommunictaor-SNAPSHOT.rar">
<archive>
deployment.ProgressCommunicator-SNAPSHOT.rar
</archive>
<transaction-support>NoTransaction</transaction-support>
<config-property name="Endpoint" type="java.lang.String">AppServer://test.myComp.net:5163/multi-dbappsrv</config-property>
<connection-definitions>
<connection-definition class-name="com.myComp.progress.ProgressCommunictaorFactory" jndi-name="java:/eis/loaderappnotx" pool-name="loaderappnotx"/>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>3</max-pool-size>
</pool>
<security>
<application/>
</security>
<timeout>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>5</idle-timeout-minutes>
</timeout>
</connection-definitions>
</resource-adapter>
<resource-adapter id="deployment.ProgressCommunictaor-SNAPSHOT.rar">
<archive>
deployment.ProgressCommunicator-SNAPSHOT.rar
</archive>
<transaction-support>LocalTransaction</transaction-support>
<config-property name="Endpoint" type="java.lang.String">AppServer://test.myComp.net:5163/multi-dbappsrv</config-property>
<connection-definitions>
<connection-definition class-name="com.myComp.progress.ProgressCommunictaorFactory" jndi-name="java:/eis/loaderapptx" pool-name="loaderapptx"/>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>3</max-pool-size>
</pool>
<security>
<application/>
</security>
<timeout>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>5</idle-timeout-minutes>
</timeout>
</connection-definitions>
</resource-adapter>
</resource-adapters>
Thanks
Syed