how to create stub?

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 17, 2024
I want to create a rmi application in java
I m using net beans for that
can any one tell me how to create stub using netbeans???

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • sookie

    sookie

    @sookie-T06sFW Sep 29, 2009

    Hi goyal420,

    If your jdk version is less than 5 then you can make stub classs of remoteInterface Object using "rmic" command at the command prompt
    Syntax: rmic [options] [package-qualified-classname(s)]

    and if you are using jdk1.5 or above, then they provide a new class called as UnicastRemoteObject. This class has a method exportObject that helps in communication between client and server.

    Check this may be of some use to you #-Link-Snipped-# . Feel free to ask related questions but please share some code pieces also if tried. It saves our time. 😀

    Thanks !
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Sep 30, 2009

    yeah dude I know that
    but i want create stub using Netbeans.
    I mean
    Is it possible to create stub without use of rmic in netbeans???
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jan 4, 2010

    Guys ...Please tell me how to create a stub using netbeans?
    I know how to create it using rmic command by using command line arguments
    but is there any method of creating it in netbeans itself?
    I mean simple click and stub is ready for me
    Waiting for replies