6 Replies Latest reply: May 13, 2012 9:38 PM by 679490 RSS

    what is Export element at tuxedo configuartion file what we need to mention

    934759
      Please Suggest me
      i written sample progarm using jca adapter configuation in configuaration what we need to mention
      as per doc the info is

      <Export name="TOLOWER_POJO"> <RemoteName>TOLOWER_POJO</RemoteName>
      <SessionName>session_1</SessionName> <Type>POJO</Type>
      <Source>com.oracle.tuxedo.test.MyTolower</Source>
      <SourceLocation>c:\tuxedo\jca\test\myapp.jar</SourceLocation>
      </Export>

      my dmconfig.xml is

      <?xml version="1.0" encoding="UTF-8"?><TuxedoConnector>
      <LocalAccessPoint name="local_1">
      <AccessPointId>dev_scurtis</AccessPointId>
      <NetworkAddress>//ip:port</NetworkAddress>
      </LocalAccessPoint>
      <RemoteAccessPoint name="e1tst_tdtux01">
      <AccessPointId>e1tst_tdtux01</AccessPointId>
      <NetworkAddress>//ip:port</NetworkAddress>
      </RemoteAccessPoint>
      <Security>DM_PW</Security>
      <ConnectionPolicy>ON_STARTUP</ConnectionPolicy>
      <ACLPolicy>Global</ACLPolicy>
      <CredentialPolicy>Global</CredentialPolicy>
      <RetryInterval>100</RetryInterval>
      </SessionProfile>
      <Session name="session_1">
      <LocalAccessPointName>local_1</LocalAccessPointName>
      <RemoteAccessPointName>e1tst_tdtux01</RemoteAccessPointName>
      <ProfileName>profile1</ProfileName>
      </Session>
      <Import name="TOUPPER">
      <RemoteName>TOUPPER</RemoteName>
      <SessionName>session_1</SessionName>
      <LoadBalancing>RoundRobin</LoadBalancing>
      </Import>
      <Import name="ECHO">
      <RemoteName>ECHO</RemoteName>
      <SessionName>session_1</SessionName>
      <LoadBalancing>RoundRobin</LoadBalancing>
      </Import>
      </TuxedoConnector>

      sholud i add the export element here if it mandatory what i sholud i mention is there any class need to write for reading
      iam getting No resorce available Exception is the reason ,which i dint mention Export element
        • 1. Re: what is Export element at tuxedo configuartion file what we need to mention
          679490
          Export in dmconfig.xml is set to exported EJB or POJO service to tuxedo side, which means inbound, tuxedo will call EJB service via JCA.

          I still suggest you to try JCA sample at first.

          Regards,
          Xu He
          • 2. Re: what is Export element at tuxedo configuartion file what we need to mention
            679490
            You can find the JCA sample at http://www.oracle.com/technetwork/indexes/samplecode/tuxedo-sample-522120.html.
            And If you need both inbound and outbound sample, please tell me your email, I will send to you.

            Regards,
            Xu He
            • 3. Re: what is Export element at tuxedo configuartion file what we need to mention
              934759
              Hi
              Xu He
              Thanks for your Reply. My mail id is harikrishna.chilukuri@gmail.com
              Please send to me sample Examples with configuration iam deploying at
              Jboss6 app server.i used TuxedoResourceAdapter class at configuration ra.xml,I need to execute


              <?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>Tuxedo JCA Adapter</display-name>
              <vendor-name>Oracle</vendor-name>
              <eis-type>Tuxedo</eis-type>
              <resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>
              <license>
              <description>Tuxedo SALT license</description>
              <license-required>false</license-required>
              </license>
              <resourceadapter>
              <resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoResourceAdapter</resourceadapter-class>
              <config-property>
              <config-property-name>traceLevel</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>80000</config-property-value>
              </config-property>
              <config-property>
              <config-property-name>xaAffinity</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>true</config-property-value>
              </config-property>
              <config-property>
              <config-property-name>keyFileName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
              </config-property>
              <config-property>
              <config-property-name>dmconfig</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>dmconfig.xml</config-property-value>
              </config-property>
              <outbound-resourceadapter>
              <connection-definition>
              <managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>
              <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
              <connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>
              <connection-interface>javax.resource.cci.Connection</connection-interface>
              <connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>
              </connection-definition>
              <transaction-support>NoTransaction</transaction-support>
              <authentication-mechanism>
              <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
              <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
              </authentication-mechanism>
              <reauthentication-support>false</reauthentication-support>
              </outbound-resourceadapter>
              </resourceadapter>
              </connector>
              • 4. Re: what is Export element at tuxedo configuartion file what we need to mention
                679490
                Hi, harikrishna.chilukuri

                We have no specific the sample for JBoss, but you can refer to the sample for weblogic and try it at first. I believe that there is no more difference between JBoss and Weblogic and you can handle it by yourself. Any problem, please feel free to contact us.


                Regards,
                Xu He
                • 5. Re: what is Export element at tuxedo configuartion file what we need to mention
                  934759
                  Hi Xu He
                  As you given reference URLXu http://www.oracle.com/technetwork/indexes/samplecode/tuxedo-sample-522120.html i downloadedTuxedo_JCA_Adaptor_sample.zip
                  After extractthat Folder i dint get any files at src folder i got only build.xml,crconfig.xml,bdmconfig_template,setenv.cmd
                  can u please send sample example of weblogic .my mail id is harikrishna.chilukuri@gmail.com

                  thanks for reply..

                  harikrishna.ch
                  • 6. Re: what is Export element at tuxedo configuartion file what we need to mention
                    679490
                    Sorry, we will correct it.

                    Any way, I already sent my sample to you which includes both inbound and outbound, please try it.


                    Regards,
                    Xu He