103104105106107108109110111112113
t1c.connect(session); t2c.connect(session, t2props); t3c.connect(session); t1c.send(new TestMessageOne("TestOne")); t2c.send(new TestMessageTwo("TestTwo")); t3c.send(new TestMessageThree("TestThree", 42)); t1c.disconnect(); t2c.disconnect(); t3c.disconnect();
130131132133134135136137138139140
{ logger.info("Testing reattach"); t2c = new TestTwoClient(); t2c.connect(session, t2props); t2c.send(new TestMessageTwo("TestTwo")); // re-reattach try { t2c.connect(session); assert false : "Re-attaching client should fail";