ClubBouncerOperations
module Module4 { //Sequence of names typedef sequence<string> NameList; interface ClubBouncer { //Takes list of names, pushes back out with un-hip names removed void approvePeople(inout NameList clubGoers); }; };
package Module4; public interface ClubBouncerOperations { public void approvePeople(Module4.NameListHolder clubGoers); }
package Module4; public interface ClubBouncerOperations { public void approvePeople(java.lang.String[] clubGoers); }
package Module4; public interface ClubBouncerOperations { public void approvePeople(NameList clubGoers); }
clubGoers
in
inout
ClubBouncer
//Initialize ORB .. ClubBouncer bouncer = null; //Obtain reference to remote ClubBouncer .. String[] wannabes = {"Mark", "Gordon", "Madonna"}; bouncer.approvePeople(wannabes); System.out.println("They'll only let in "+wannabes.length+" of us"); // ...
//Initialize ORB .. ClubBouncer bouncer = null; //Obtain reference to remote ClubBouncer .. String[] wannabes = {"Mark", "Gordon", "Madonna"}; NameListHolder listParam = new NameListHolder(wannabes); bouncer.approvePeople(listParam); System.out.println("They'll only let in "+listParam.value.length+" of us"); // ...
//Initialize ORB .. ClubBouncer bouncer = null; //Obtain reference to remote ClubBouncer .. NameList wannabes = new NameList("Mark", "Gordon", "Madonna"); NameListHolder listParam = new NameListHolder(wannabes); bouncer.approvePeople(listParam); System.out.println("They'll only let in "+listParam.value.length+" of us"); // ...
NameListHolder
approvePeople()