Queue replyTo = null;
try
{
replyTo = (Queue) message.getJMSReplyTo();
String name = message.getStringProperty("name");
ProjRepositoryHome home = (ProjRepositoryHome) iniCtx.lookup("java:comp/env/ejb/ProjRepository");
NameParser parser = iniCtx.getNameParser("");
Name projName = parser.parse(name);
// This requires the ProjectAdmin role
ProjRepository bean = home.create(projName);
// This requires CreateFolder role
Name programs = parser.parse("/Programs Files");
bean.createFolder(programs);
// This requires DeleteFolder role
bean.deleteFolder(programs, true);