// send message over session channel
sender.send(session, new TestMessageOne("Attach: TestOne (private)"));
// send message over all-clients channel
sender.send(new TestMessageTwo("Attach: TestTwo"));
// now schedule a task to send more messages
AppContext.getTaskManager().scheduleTask(new SendTask(sender,
session));
}