Package com.sun.jini.test.share

Examples of com.sun.jini.test.share.TestParticipant.behave()


            }
            cr = TransactionFactory.create(mgr, Lease.FOREVER);
            part.setBehavior(OP_JOIN);
            part.setBehavior(OP_TIMEOUT_PREPARE);
            part.setBehavior(OP_VOTE_ABORTED);
            part.behave(cr.transaction);
            cr.transaction.commit();
      throw new TestException("CannotCommitException is not raised");
       } catch (CannotCommitException cce) {
            cce.printStackTrace();
View Full Code Here


        part.setBehavior(EXCEPTION_REMOTE);       
        logger.log(Level.INFO, "Configured participant to throw RE 1st");               
        part.setBehavior(EXCEPTION_TRANSACTION);
        logger.log(Level.INFO, "Configured participant to throw UTE 2nd");                               
        logger.log(Level.INFO, "Configuring participant to behave");
        part.behave(cr.transaction);
        Clearer clearer = new Clearer(part);
        Thread t = new Thread(clearer);
        logger.log(Level.INFO, "Running clearer thread");                       
        t.start();
        logger.log(Level.INFO, "Committing transaction");                       
View Full Code Here

        part.setBehavior(EXCEPTION_REMOTE);       
        logger.log(Level.INFO, "Configured participant to throw RE 1st");               
        part.setBehavior(EXCEPTION_TRANSACTION);
        logger.log(Level.INFO, "Configured participant to throw UTE 2nd");                               
        logger.log(Level.INFO, "Configuring participant to behave");
        part.behave(cr.transaction);
        Clearer clearer = new Clearer(part);
        Thread t = new Thread(clearer);
        logger.log(Level.INFO, "Running clearer thread");                       
        t.start();
        logger.log(Level.INFO, "Committing transaction");                       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.