Advanced Programming for the Java 2 Platform by Calvin Austin

By Calvin Austin

(Pearson schooling) A advisor for knowledgeable internet builders to utilizing the Java 2 platform. publications the reader via complex APIs, offering assurance of key parts in complicated purposes. The CD-ROM includes all the resource code referenced within the textual content in addition to the textual content itself in html, and Linux software program. Softcover. DLC: program software--Development.

Show description

Read Online or Download Advanced Programming for the Java 2 Platform PDF

Similar java books

Professional Java Native Interfaces with SWT/JFace

Expert Java local Interfaces takes a solutions-based procedure in exhibiting how SWT/JFace works, discussing each one universal part, offering precious, useful rules, assistance and methods to make the Java builders' paintings more uncomplicated. the writer offers suitable and well timed examples, either stand-alone functions and smaller code snippets that readers can comprise into their very own code.

JSTL in Action

The ebook used to be precisely as defined. Is in nice situation and kept me a number of cash rather than procuring it via my campus book shop. supply used to be quickly. Will order from them back.

J2EE Design Patterns Applied

Using layout styles in J2EE functions is an exhilarating new box, including to the present wealth of software program layout styles. in spite of the fact that those styles don't exist in isolation, and necessarily they should be assembled to shape greater and extra complicated frameworks. determining styles and turning them into actual global options is rarely a simple activity.

Additional info for Advanced Programming for the Java 2 Platform

Example text

Lookup Services • Remote Method Invocation (RMI) • Common Object Request Broker Architecture (CORBA) • JDBC Technology • Servlets In a Rush? This table links you directly to specific topics. Topic Section Lookup Services • Java Naming and Directory Interface (JNDI) • Common Object Request Broker Architecture (CORBA) Naming Service • Interoperable Object References (IOR) • Remote Method Invocation (RMI) • RMI Over Internet Inter-ORB Protocol (IIOP) • JINI Lookup Services 42 43 • Improving Lookup Performance Remote Method Invocation (RMI) • About RMI • RMI in the Auction Application ♦ Class Overview ♦ File Summary ♦ Compile the Example ♦ Start the RMI Registry ♦ Start the Remote Server • Establishing Remote Communications • RegistrationServer Class ♦ Exporting a Remote Object ♦ Passing by Value and by Reference ♦ Distributed Garbage Collection • Registration Interface • ReturnResults Interface • SellerBean Class Common Object Request Broker Architecture (CORBA) • IDL Mapping Scheme ♦ Quick Reference ♦ Setting up IDL Mappings ♦ Other IDL Types • CORBA in the Auction Application ♦ CORBA RegistrationServer ♦ IDL Mappings File ♦ Compiling the IDL Mappings File ♦ Stub and Skeleton Files • Object Request Broker (ORB) ♦ Making the CORBA Server Accessible ♦ Plugging in a New ORB ♦ Naming Service Access by CORBA Clients • Helper and Holder Classes • Garbage Collection • CORBA Callbacks • Using the Any Type • Conclusion JDBC Technology • JDBC Drivers • Database Connections • Statements ♦ Callable Statements ♦ Statements ♦ Prepared Statements • Caching Database Results • Result Sets • Scrolling Result Sets • Controlling Transactions • Escaping Characters • Mapping Database Types • Mapping Date types [TOP] 43 44 Chapter 4: Lookup Services [<>] Lookup services enable communications over a network.

INVALID_ITEM; } } [TOP] Chapter 3 Continued: Bean-Managed finder Methods [<>] The container-managed search described in Chapter 2 is based on a finder method mechanism where the deployment descriptor, rather than the Bean, specifies the finder method behavior. While the finder mechanism works well for simple queries and searches, it cannot handle complex operations that span more than one Bean type or database table. 1 specification currently provides no specification for putting finder rules in the deployment descriptor.

This invokes AuctionServlet, which retrieves the search string from the HTTP header and passes it to the searchItem method. Note: The search logic for this example is fairly simple. The purpose is to show you how to move the search logic into a separate Enterprise Bean so you can create a more complex search on your own. The searchItem operation is in two parts: 1) Using the search string to retrieve primary keys, and 2) Using primary keys to retrieve auction items. Part 1: The first thing the searchItems method does is pass the search string submitted by the end user to the SearchBean session Bean.

Download PDF sample

Rated 4.51 of 5 – based on 9 votes