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