Java & JEE books Page13
The voodoo's Introduction
essential of the programming language- part-2 Java Programming Language Basics, finished with a simple network communications example using the Remote Method Invocation (RMI) application programming interface (API). The RMI example allows multiple client programs to communicate with the same server program without any explicit code to do this because the RMI API is built on sockets and threads.
A socket is a software endpoint that establishes bi-directional communication between a server program and one or more client programs. The socket associates the server program with a specific hardware port on the machine where it runs so any client program anywhere in the network with a socket associated with that same port can communicate with the server program.
Servlets and JavaServer page 1.0 Servlets are Java technology's answer to CGI programming. They are programs that run on a Web server and build Web pages. Building Web pages on the fly is useful (and commonly done) for a number of reasons:
* The Web page is based on data submitted by the user. For example the results pages from search engines are generated this way, and programs that process orders for e-commerce sites do this as well.
* The data changes frequently. For example, a weather-report or news headlines page might build the page dynamically, perhaps returning a previously built page if it is still up to date.
* The Web page uses information from corporate databases or other such sources. For example, you would use this for making a Web page at an on-line store that lists current prices and number of items in stock.
Introduction to Java Beans
This tutorial will cover Bean basics and more. First, JavaBeans will be introduced: the importance of components, other component technologies and the structure of JavaBeans. A simple JavaBean will be made to show the possibilities of Beans.
Before we can take a look at how JBuilder 2.0 supports the development of JavaBeans, it is preferred to look at some background theory of JavaBeans. This first part will focus on the JavaBeans definition. We will see what is necessary to define a Java class as a JavaBean.
And because JavaBeans are a component model for Java, we will take a look at component technology in general, and the advantages of components.