Results 1 to 6 of 6

Thread: What is RMI in java programming?

  1. #1
    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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. #3
    Join Date
    May 2008
    Posts
    2,012

    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

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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)

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    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. #6
    Join Date
    May 2008
    Posts
    2,389

    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.

Similar Threads

  1. Object oriented programming with java
    By cloud101 in forum Software Development
    Replies: 2
    Last Post: 22-02-2012, 01:11 AM
  2. Help with java programming term
    By cloud101 in forum Software Development
    Replies: 1
    Last Post: 06-02-2012, 01:45 PM
  3. Java programming
    By overlord94 in forum Software Development
    Replies: 1
    Last Post: 07-10-2011, 07:45 PM
  4. Java Programming using Adventnet SNMP Java API
    By ROCKING_Suhas in forum Software Development
    Replies: 5
    Last Post: 17-07-2010, 06:52 AM
  5. How to Start programming in JAVA ?
    By Keegan in forum Software Development
    Replies: 11
    Last Post: 22-12-2008, 02:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,569,230.72818 seconds with 17 queries