5 Replies Latest reply on Jan 18, 2016 11:42 AM by mnv1

    Oracle Tuxedo JCA Adapter

    mnv1

      Hello,

       

      I have deployed it, it has established connectivity successfully, but I am unable to run a simple JSP app on it.

       

      Context ctx;

      TuxedoConnectionFactory tcf;

       

      ctx = new InitialContext();

      tcf =

        (TuxedoConnectionFactory) ctx.lookup("eis/TuxedoConnectionFactory");

       

      Caused by: TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not get TuxedoConnectionFactory : java.lang.ClassCastException: com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory cannot be cast to com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory

       

      I will need that object to later use com.oracle.tuxedo.adapter.cci.TuxedoInteraction, which has tpcall method.

       

      Has anyone implemented this successfully on wildfly-9.0.2.Final ?

       

      Thanks in advance.

        • 1. Re: Oracle Tuxedo JCA Adapter
          jesper.pedersen
          • 2. Re: Oracle Tuxedo JCA Adapter
            erhard

            See also https://developer.jboss.org/message/949052

            You need do create a module out of the libraries in the adapter.

            modules/com/oracle/tuxedo-adapter/main/module.xml

            modules/com/oracle/tuxedo-adapter/main/com.bea.core.jatmi-1.3.2.0.jar

            modules/com/oracle/tuxedo-adapter/main/com.bea.core.i18n-1.4.0.0.jar

            modules/com/oracle/tuxedo-adapter/main/com.oracle.tuxedo.adapter-1.2.1.0.RP012.jar

             

            module.xml:

            <module xmlns='urn:jboss:module:1.0' name='com.oracle.tuxedo-adapter'>
              <resources>
                <resource-root path='com.bea.core.i18n-1.4.0.0.jar' />
                <resource-root path='com.bea.core.jatmi-1.3.2.0.jar' />
                <resource-root path='com.oracle.tuxedo.adapter-1.2.1.0.RP012.jar' />
              </resources>
              <dependencies>
                <module name='javax.api' />
                <module name='javax.transaction.api' />
                <module name='javax.resource.api' />
              </dependencies>
            </module>
            

             

            Then you add the module as global module (or create Dependencies in META-INF):

            /subsystem=ee/:write-attribute(name=global-modules, value=[{"name" => "com.oracle.tuxedo-adapter","slot" => "main"}])

            • 3. Re: Oracle Tuxedo JCA Adapter
              mnv1

              Thanks guys. I will try creating a module. Meanwhile, I got it working by adding WEB-INF/jboss-deployment-structure.xml.

              • 4. Re: Oracle Tuxedo JCA Adapter
                erhard

                What did you write into your jboss-deployment-structure.xml? The deployed adapter? Could be even a simpler solution that creating a module.

                • 5. Re: Oracle Tuxedo JCA Adapter
                  mnv1

                  Here it is. Any other ideas are welcome!

                   

                  <jboss-deployment-structure>

                  <ear-subdeployments-isolated>true</ear-subdeployments-isolated>

                  <deployment>

                  <dependencies>

                    <module name="deployment.com.oracle.tuxedo.TuxedoAdapter.rar" />

                  </dependencies>

                  <exclusions>

                    <module name="com.oracle.tuxedo.adapter.cci" />

                  </exclusions>

                  </deployment>

                  </jboss-deployment-structure>