0 Replies Latest reply on Apr 17, 2013 4:48 AM by Thomas Chang

    A question about configure the 'xa_open string'

    Thomas Chang Apprentice

      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=MYDB+Threads=true+Loose_Coupling=false+MaxCur=50+LogDir=/var/log/jboss/my_app</config-property-value>
        </config-property>
      ...
      ...
      - <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]