Samples JDK
Main Page
Related Pages
Packages
Classes
Files
File List
src
com
freemindcafe
rmi
sample1
client
AdditionClient.java
1
package
com.freemindcafe.rmi.sample1.client;
2
3
import
java.rmi.Naming;
4
5
import
com
.
freemindcafe
.
rmi
.
sample1
.
server
.
IAddition
;
6
7
public
class
AdditionClient
{
8
9
public
static
void
main(String[] args)
throws
Exception {
10
IAddition
hello;
11
hello = (
IAddition
)Naming.lookup(
"rmi://localhost/rmi-sample1"
);
12
int
result=hello.add(9,10);
13
System.out.println(
"Result is :"
+result);
14
}
15
16
}
com.freemindcafe.rmi
Definition:
package-info.java:4
com
com.freemindcafe.rmi.sample1.client.AdditionClient
Definition:
AdditionClient.java:7
com.freemindcafe
com.freemindcafe.rmi.sample1.server.IAddition
Definition:
IAddition.java:5
com.freemindcafe.rmi.sample1.server
Definition:
Addition.java:1
com.freemindcafe.rmi.sample1
rmic and rmiregistry is used. This one does not uses SecurityManager.
Generated on Fri Feb 19 2016 08:35:43 for Samples JDK by
1.8.9.1