Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



What is RMI in java programming?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 12-03-2010
Member
 
Join Date: Dec 2009
Posts: 32
What is RMI in java programming?
  

Hello Friend,

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.

Reply With Quote
  #2  
Old 12-03-2010
Member
 
Join Date: Apr 2008
Posts: 1,947
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.
Reply With Quote
  #3  
Old 12-03-2010
Member
 
Join Date: May 2008
Posts: 2,007
Re: What is RMI in java programming?

The RMI in java programming comprises following some packages:
  1. java.rmi.activation Package
  2. java.rmi Package
  3. java.rmi.server Package
  4. java.rmi.registry Package
  5. java.rmi.dgc Package
Reply With Quote
  #4  
Old 12-03-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
Re: What is RMI in java programming?

Hi friend,

There are totally three RMI Tools available in java programming, see below:
  • rmid: It is nothing but the as daemon of Java Remote Method Invocation activation system (for Microsoft Windows)
  • rmiregistry: It is referred as registry of Java remote object (for Microsoft Windows)
  • rmic: It is referred as compiler of Java Remote Method Invocation stub (for Microsoft Windows)
Reply With Quote
  #5  
Old 12-03-2010
Member
 
Join Date: Oct 2005
Posts: 2,389
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);
  }
}
Reply With Quote
  #6  
Old 12-03-2010
Member
 
Join Date: May 2008
Posts: 2,382
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What is RMI in java programming?"
Thread Thread Starter Forum Replies Last Post
Object oriented programming with java cloud101 Software Development 2 22-02-2012 12:11 AM
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
How to Start programming in JAVA ? Keegan Software Development 11 22-12-2008 01:02 PM


All times are GMT +5.5. The time now is 08:16 PM.