This is very old page, many links do not work, will update it, asap.
The following samples should serve as presentation of some Java constructs. It is meant to be a guide "how to use" particular technique and kind of proof of "this is reality" (not just joking) !There are on-line Core Java and examples documentation (javadoc), OMT class diagrams of some of sample classes and related topic links on the top of every section dedicated for "fast start".
The categories are:
Counter
provides generic featutes of simple counter
such as incrementing and decrementing integer value. This class serves as a base class
for another more sophisticated samples.
Try it with just JDK 1.0 enabled browser.
Dependences: none
Source code:
Related Links
Database Explorer
main
method or by using servlet
based Web service.
Try it with just JDK 1.0 enabled browser.
Dependences: none
Source code
Staff Finger
Try it with just JDK 1.0 enabled browser.
Dependences: JDBC/Database Explorer
Source code
Try it with just JDK 1.0 enabled browser.
Dependences: none
Source code
Related Links
Remote Object Register
CLASSPATH
.
Try it with just JDK 1.0 enabled browser.
Dependences: none
Source code
Server Object Server
Bindable
interface and (b) all necessary class files
have to resist in the server CLASSPATH
.RMI/Remote Counter, CORBA/Remote Counter,
Net/Socket Echo
Try it with just JDK 1.0 enabled browser.
Dependences: none
Source code
Related Links
Remote Counter
generic/Counter
with Java IDL features
to be a remote object so its state and behavior can be accessed via a network.
Try it with just JDK 1.0 enabled browser.
Dependences: generic/Counter
Source code:
Remotely Observable
Observable - Observer
couple from java.util
package.
The need of having an remotely observable object may arise when one is doing
distributed computing. This extension of Java standard Observable
is based
on Java implementation of IDL version alfa 2.2.
Note that this is a preliminary release without implementation of type
Any
. Because of this absence the notify
method
has no parameters (parameter type vary from case to case).
Dependences: none
Source code
Observed Remote Counter
Corba/Remote Counter
and Corba/Remotely Observable
.
It extends Corba/Remote Counter
to be accessible via network
and uses Corba/Remotely Observable
behaviour to be observable by remote observers.
Try it with just JDK 1.0 enabled browser.
Dependences: generic/Counter; Corba/Remote Counter; Corba/Remotely Observable
Source code:
Related Links
Remote Counter
generic/Counter
with Java RMI features
to be a remote object so its state and behavior can be accessed via a network.
Try it with JDK 1.1 enabled browser.
Dependences: generic/Counter
Source code:
Remotely Observable
Observable - Observer
couple from java.util
package.
The need of having an remotely observable object may arise when one is doing
distributed computing. This extension of Java standard Observable
is based
on Java RMI.
Dependences: none
Source code
Observed Remote Counter
RMI/Remote Counter
and RMI/Remotely Observable
.
It extends RMI/Remote Counter
to be accessible via network
and uses RMI/Remotely Observable
behaviour to be observable by remote observers.
Try it with JDK 1.1 enabled browser.
Dependences: generic/Counter; RMI/Remote Counter; RMI/Remotely Observable
Source code: