// let's login with other user
securityClient.setSimple("bill", "bill123");
securityClient.login();
System.out.println("bill is an admin");
// Now work on the other bean
PartialXMLDD partialXMLDDBean = (PartialXMLDD) ctx.lookup("PartialXMLDD/remote");
System.out.println("Sending Hello World message to bean. We expect the bean to change it");
System.out.println(partialXMLDDBean.changeMessage("Hello world"));
System.out.println("Now calling echo message");
System.out.println(partialXMLDDBean.echoMessage("Hello World"));
//let's remove the bean
System.out.println("We are done with the bean, let's remove it");
partialXMLDDBean.remove();
System.out.println("Bean removed");
}