System.out.println();
System.out.println("Tree administration...");
AdminModule.connect("root", "root", 60);
Topic news = Topic.create(0);
Topic business = Topic.create(0);
Topic sports = Topic.create(0);
Topic tennis = Topic.create(0);
business.setParent(news);
sports.setParent(news);
tennis.setParent(sports);
javax.jms.ConnectionFactory cf =
TcpConnectionFactory.create("localhost", 16010);
User.create("anonymous", "anonymous", 0);
news.setFreeReading();
news.setFreeWriting();
business.setFreeReading();
business.setFreeWriting();
sports.setFreeReading();
sports.setFreeWriting();
tennis.setFreeReading();
tennis.setFreeWriting();
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
jndiCtx.bind("news", news);
jndiCtx.bind("business", business);
jndiCtx.bind("sports", sports);