Java Course Day 17

Preview:

DESCRIPTION

 

Citation preview

Day 17

JNDIJava Naming Directory Interface

Looking up an Object

Looking up an ObjectListing the Context

Looking up an ObjectListing the ContextBinding

Looking up an ObjectListing the ContextBindingRenaming

Looking up an ObjectListing the ContextBindingRenamingSubcontext

RMIRemote Method Invocation

Server – Registry - Client

rmiregistry (1099)

remote method call in 5 steps

1. Declare the remote interface

1. Declare the remote interface

2. Implement the remote interface

1. Declare the remote interface

2. Implement the remote interface

3. Start the registry and register the RMI server with it

1. Declare the remote interface

2. Implement the remote interface

3. Start the registry and register the RMI server with it

4. Start Server

1. Declare the remote interface

2. Implement the remote interface

3. Start the registry and register the RMI server with it

4. Start Server

5. Run Client