Sample Program Using the Common Client Interface

Finally, take a quick look at an application that uses the Common Client Interface to interact with a fictitious library database and search for the book titled Teach Yourself WebLogic Server 7.0. The application takes the title of the book to be searched as a parameter. It executes the procedure BOOK_RECORD, passing the book title as the parameter. It retrieves the output in the form of a record and iterates the record to retrieve the data. Remember, this is just a sample code snippet and not an actual working code.

 Class MyCCISampleApp { public static void main(String args[]) { String bookToSearch = new String(); Object outputObj = null; // get the book title to search bookToSearch = args[0]; ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.