|
| ||||||||||
| Tags: concept of rmi, remote method, remote method invocation, rmi, rmi concept, what is rmi |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| What is RMI in java programming?
I am new to the advanced java programming language. I have good knowledge about the core java, but it's different from advanced java. I am getting troubled while referring the 'RMI' concept of the advanced java. If you have sound knowledge about the 'RMI' concept, then please try to share it with me. Your any help over 'RMI' would be greatly appreciated. |
|
#2
| ||||
| ||||
| Re: What is RMI in java programming?
Java Remote Method Invocation (Java RMI) enables the programmer to create distributed Java technology-based to Java technology-based applications, in which the methods of remote Java objects can be invoked from other Java virtual machines, possibly on different hosts. RMI uses object serialization to marshal and unmarshal parameters and does not truncate types, supporting true object-oriented polymorphism. |
|
#3
| |||
| |||
| Re: What is RMI in java programming?
The RMI in java programming comprises following some packages:
|
|
#4
| ||||
| ||||
| Re: What is RMI in java programming?
Hi friend, There are totally three RMI Tools available in java programming, see below:
|
|
#5
| ||||
| ||||
| Re: What is RMI in java programming?
Hello friend, Please go through the following example of the RMI from the java programming: Code: import java.rmi.Remote;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import java.rmi.RemoteException;
import org.springframework.core.io.Resource;
class rmserviceclientDM
{
public static void main(String alprgs[]) throws Exception
{
Resource res1 = new ClassPathResource("context.xml");
BeanFactory factory1 = new XmlBeanFactory(res);
RMIServer bean01 = (RMIServer) factory.getBean("RMIServer");
String r1 = bean01.getresult("asdlf");
System.out.println(r);
res1 = new ClassPathResource("context.xml");
factory = new XmlBeanFactory(res);
RMIservice bean02 = (RMIservice) factory.getBean("RMIservice");
String s1 = bean02.getresult("AAA");
System.out.println(s1);
}
} |
|
#6
| ||||
| ||||
| Re: What is RMI in java programming?
The RMI i.e Remote Method Invocation is nothing but the implementation of the open sockets. When a remote method is called, at that time the Remote Method Invocation implementation make the reuse of an connection which is open, using equivalent socket factory. In RMI the socket factories of the client re basically serialized with the clients. The single client can comprise unique copies of the socket factory. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "What is RMI in java programming?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with java programming term | cloud101 | Software Development | 1 | 06-02-2012 12:45 PM |
| Java programming | overlord94 | Software Development | 1 | 07-10-2011 07:45 PM |
| Java Programming using Adventnet SNMP Java API | ROCKING_Suhas | Software Development | 5 | 17-07-2010 06:52 AM |
| Advice on the Java as Programming Language | Muhammad Waqar | Software Development | 5 | 05-01-2010 08:28 PM |
| How to Start programming in JAVA ? | Keegan | Software Development | 11 | 22-12-2008 01:02 PM |