Jini

Jini


Jini Federation


Figure 1: Components of a Jini federation

Service Registration


Figure 2: Querying for a service locator

Figure 3: Registrar returned

Figure 4: Service uploaded

Client Lookup


Figure 5: Querying for a service locator

Figure 6: Registrar returned

Figure 7: Asking for a service

Figure 8: Service returned

Support Services

Proxies


Attribute Registration


Service Location


Leasing


Events


GUI


Transactions


Jini echo

Echo service done in Jini The source files are here

Echo interface

Echo interface implementation

Echo server

Echo client

Compiling/running the example


Flashing clocks in Jini

Java classes for timer service

Code is available from here

Timer service

Computer Timer

Implementation of timer that gets its time from the computer clock using the Calendar class. This is the same as the UPnP service, except it uses java.util.Date

Ticker Timer

Another implementation that runs a "ticker" in a thread to update the time. This timer is invalid until something else sets its time. This is the same as the UPnP service

Clock device

Ticker clock

This creates a clock device, sets a ticker timer in it and starts the frame. This is basically the same as the UPnP version except in doesn't have to catch the parse error for the XML device description.

Computer clock

This creates a clock device, sets a computer timer in it and starts the frame . Similar to the UPnP version

Clock frame

This is the same as the UPnP version

Clock pane

This is like the UPnP version, but calls to remote objects have to catch a potential RemoteException

Compiling/running the example

Why is it so complicated?

Jini uses mobile code to put a proxy on a client and make RPC calls from the proxy through to the service. This means

Do you need HTTP servers?

Running a lookup server

Sigh, as if that wasn't enough...


Jan Newmarch <jan@newmarch.name>
Last modified: Thu May 27 18:44:23 EST 2004