13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.8 Introducing RMI137Here you see the class being run, and, sure enough, it displays our username.We then run su to become root and (after setting that library path) runit again—and, sure enough, it tells us we are “root.”We’ll talk more about JNI later in the book, but now you know enoughto be dangerous.5.8INTRODUCING RMIRemote Method Invocati<strong>on</strong> (RMI) is a system for distributing applicati<strong>on</strong> codeover multiple hosts. It is a small part of multitier computing. Much of this bookwill be devoted to the how’s and why’s of multitier client/server computing.Here we are c<strong>on</strong>cerned <strong>on</strong>ly with the SDK tool rmic, the RMI compiler.5.8.1 A Brief Introducti<strong>on</strong> to RMIRemote Method Invocati<strong>on</strong> is a basic client-server model for invoking Javamethods over a network.5.8.1.1 History and BackgroundOne of the most comm<strong>on</strong> problems in computing is how best to make an applicati<strong>on</strong>available to the largest number of users at the least cost. To this endwe have seen the development of “timeshare” systems with dumb terminals allover the place. We have seen the evoluti<strong>on</strong> of distributed GUI systems with XWindows and its network display system, and with tools like VNC (VirtualNetwork C<strong>on</strong>sole). 16 We have seen the emergence of the PC, providingaut<strong>on</strong>omous computing at each worker’s desktop. And finally we have seen thedesktop turning slowly back into a terminal (albeit a prettier <strong>on</strong>e) with theemergence of client-server computing.What seems to have emerged from this progressi<strong>on</strong> is two major kinds ofsoftware systems. One is the PC and associated hardware and software. <str<strong>on</strong>g>Development</str<strong>on</strong>g>shere have dramatically increased the power and productivity of individualwork. The PC revoluti<strong>on</strong> was indeed a real change throughout the worldof business and technology. But even with this, there are a host of applicati<strong>on</strong>sand business functi<strong>on</strong>s that require a collecti<strong>on</strong> of data and resources to beavailable to multiple workers at the same time. This is the sec<strong>on</strong>d major kind16. http://www.realvnc.com/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!