java rmi skeleton

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poopsy
    New Member
    • Nov 2006
    • 50

    java rmi skeleton

    hello all,
    im trying out examples for java rmi but am having a problem.. the skeleton is not being generated, only the stub is generated.
    i have an example with the following classes:
    Account.java( which is the interface definition)
    AccountImpl.jav a (contains implementation for the remote interface)
    AccountServer.j ava
    AccountClient.j ava

    i have already set my classpath, etc..
    to compile i did the following:

    javac Account.java
    javac AccountImpl.jav a
    javac AccountServer.j ava
    javac AccountClient.j ava
    rmic AccountImpl


    To run:
    start rmiregistry
    java -Djava.security. policy=mypolicy AccountServer
    java -Djava.security. policy=mypolicy AccountClient

    mypolicy is the name of my file where i have stored the policy thing..

    when i look in my folder after compiling and running the program i find the AccountImpl_Stu b class but i dont find the skeleton!!
    how do i generate the skeleton???
    i have tried other examples also but its the same

    plzz help
    thx
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    What Java version are you running? Skeletons and stubs are outdated nowadays. Read the latest version of the RMI tutorial. Things have been made easier over the years.

    kind regards,

    Jos

    Comment

    • poopsy
      New Member
      • Nov 2006
      • 50

      #3
      i have java 1.6 installed.
      i am doing this for a lab test coz i've been told that we should see both the stub and skeleton in the folder..

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by poopsy
        i have java 1.6 installed.
        i am doing this for a lab test coz i've been told that we should see both the stub and skeleton in the folder..
        If you read that tutorial you'll see that nowhere the RMI compiler (rmic) is used anymore because it isn't needed anymore and you most certainly don't need those skeleton classes anymore. Follow the example (the pi calculator) and see a working rmi application.

        kind regards,

        Jos

        Comment

        Working...