BookStore
module BookShopModule { interface BookStoreInv { readonly attribute long totalBooksInStock; long getNumCopiesOfBook(in string title); boolean isBookInStock(in string title); boolean removeCopy(in string title); }; interface Pricer { float priceBook(in string title); boolean isBookOnSale(in string title,out float percentage); }; interface BookStore { boolean lookUpBookPrice(in string title, out float price, out long numcopies, out float discount); boolean buyBook(in string title, inout float currentCredit); } };
org.omgCORBA.Object lookUpBookStore()
NameService
lookUpBookStore()
BookShopModule.BookStore
client.Client
main()
okUpBookStoreMethod
> java client.Client 2001