JBoss Community

A question about configure the 'xa_open string'

created by Thomas Chang in Datasource Configuration - View the full discussion

Hi,

 

I am not sure if I should put my post here. Hope someone can help.

 

Background to my question:


One of our Jboss-Server is installed on a machine which OS is RHEL (RedHat Linux). There is a C/C++-Programm which is capsulated in a rar file uses the XA-transaction. This will create XA-trace file everyday. But these trace files (such as 'xa_NULL04162013.trc') are pushed unter $JBOSS_HOME/bin. I find thi is not correct. So I want to relocate these trace files.


According to the Oracle documents the location of the trace files is defined in the so-called xa_open string (or simply open string). I find out this 'xa_open string' is defined in a file called ra.xml inside the rar (such as 'RACPerf.rar').


I've added the LogDir to the 'xa_open string' but it seems it doesn't work since I find the xa-trace files are still pushed under the $JBOSS_HOME/bin.


Here is the ra.xml where the 'xa_open string' defined.


Has someone idea?

 

[code]

<?xml version="1.0" encoding="UTF-8" ?>
- <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5">
  <display-name>RACPerf</display-name>
  <vendor-name>PYLON</vendor-name>
  <eis-type>PERFEKT C Resource Adapter</eis-type>
  <resourceadapter-version>1.0</resourceadapter-version>
- <resourceadapter>
  <resourceadapter-class>org.jboss.resource.deployment.DummyResourceAdapter</resourceadapter-class>
- <outbound-resourceadapter>
- <connection-definition>
  <managedconnectionfactory-class>de.pylon.ra.connection.ManagedFactory</managedconnectionfactory-class>
- <config-property>
  <description>Oracle XA connect String, er wird um ACC=P/(UserName)/(Password) ergaenzt. Er darf die Elemente ACC und SesTM nicht enthalten.</description>
  <config-property-name>ConnectionURL</config-property-name>
  <config-property-type>java.lang.String</config-property-type>
  <config-property-value>Oracle_XA+SqlNet=VGERTJ+Threads=true+Loose_Coupling=false+MaxCur=50+LogDir=/var/log/jboss/vger1</config-property-value>
  </config-property>
- <config-property>
  <config-property-name>UserName</config-property-name>
  <config-property-type>java.lang.String</config-property-type>
  <config-property-value>pylon</config-property-value>
  </config-property>
- <config-property>
  <config-property-name>Password</config-property-name>
  <config-property-type>java.lang.String</config-property-type>
  <config-property-value>pylon</config-property-value>
  </config-property>
- <config-property>
  <description>session timeout value in seconds, this is a required parameter</description>
  <config-property-name>sessionTimeout</config-property-name>
  <config-property-type>java.lang.Integer</config-property-type>
  <config-property-value>7200</config-property-value>
  </config-property>
  <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
  <connectionfactory-impl-class>de.pylon.ra.connection.FactoryImpl</connectionfactory-impl-class>
  <connection-interface>javax.resource.cci.Connection</connection-interface>
  <connection-impl-class>de.pylon.ra.connection.RAConnection</connection-impl-class>
  </connection-definition>
  <transaction-support>XATransaction</transaction-support>
- <authentication-mechanism>
  <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
  <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
  </authentication-mechanism>
  <reauthentication-support>true</reauthentication-support>
  </outbound-resourceadapter>
  </resourceadapter>
  </connector>

[/code]

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community