Package org.jboss.test.jbossts.txpropagation.ejb2

Examples of org.jboss.test.jbossts.txpropagation.ejb2.TxPropagationEJB2Home


   }

   public static TxPropagationEJB2Rem lookupTxPropagationBeanEJB2(String host, int jndiPort, int corbaPort, boolean useOTS) throws Exception
   {
      String jndiName = useOTS ? TxPropagationEJB2Rem.JNDI_NAME_IIOP : TxPropagationEJB2Rem.JNDI_NAME_JRMP;
      TxPropagationEJB2Home home = (TxPropagationEJB2Home) lookupEjb(host, jndiPort, corbaPort, jndiName, TxPropagationEJB2Home.class, useOTS);
      return home.create();
   }
View Full Code Here


            TxPropagationRem cr = EJBUtils.lookupTxPropagationBeanEJB3(remoteHost, remoteJndiPort, remoteCorbaPort, useOTS);
            result = cr.testXA(fSpecsRemoteNode, testEntityPKRemoteNode);
         }
         else
         {
            TxPropagationEJB2Rem cr = EJBUtils.lookupTxPropagationBeanEJB2(remoteHost, remoteJndiPort, remoteCorbaPort, useOTS);
            result = cr.testXA(fSpecsRemoteNode, testEntityPKRemoteNode);
         }
        
         log.info("result = " + result);
         return "Passed".equalsIgnoreCase(result);
      }
View Full Code Here

            TxPropagationRem cr = EJBUtils.lookupTxPropagationBeanEJB3(host0, jndiPort0, corbaPort0, useOTS);
            res = cr.testXA(fSpecsNode0, fSpecsNode1, testEntityPK0, testEntityPK1, host1, expectFailureNode1, useOTS, jndiPort1, corbaPort1);
         }
         else
         {
            TxPropagationEJB2Rem cr = EJBUtils.lookupTxPropagationBeanEJB2(host0, jndiPort0, corbaPort0, useOTS);
            res = cr.testXA(fSpecsNode0, fSpecsNode1, testEntityPK0, testEntityPK1, host1, expectFailureNode1, useOTS, jndiPort1, corbaPort1);
         }
        
         // in case of commit_halt on node1 there is no thrown exception, though that we need to pass through recoverUids()
         return "Passed".equalsIgnoreCase(res) && recoverUids();
      }
View Full Code Here

TOP

Related Classes of org.jboss.test.jbossts.txpropagation.ejb2.TxPropagationEJB2Home

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.