RMI without registry

Discussion in 'Java' started by jena.alok@gmail.com, Jan 27, 2006.

  1. Guest

    Hi,
    I want to create a RMI based client server without using the registry.I
    am using the database as a storage instead of the registry.

    Here is what i am doing

    a) The server extends UnicastRemoteObject .I bring-up the server and
    writes it's RemoteRef to the database .
    b) The client comes up and reads the RemoteRef object from the
    database.It constructs the Stub and invokes the remote method on the
    stub .

    I get the unknown source method error .Why the client is not able to
    contact the server and load the server code ....

    Thanks,
    AJ
     
    , Jan 27, 2006
    #1
    1. Advertisements

  2. EJP Guest

    wrote:
    > Hi,
    > I want to create a RMI based client server without using the registry.I
    > am using the database as a storage instead of the registry.
    >
    > Here is what i am doing
    >
    > a) The server extends UnicastRemoteObject .I bring-up the server and
    > writes it's RemoteRef to the database .
    > b) The client comes up and reads the RemoteRef object from the
    > database.It constructs the Stub and invokes the remote method on the
    > stub .
    >
    > I get the unknown source method error .Why the client is not able to
    > contact the server and load the server code ....


    You should be writing the entire stub, not just the RemoteRef. Simpler,
    better. You understand that the stub & reference are not persistent,
    i.e. they only apply to that invocation of the server? If you want a
    persistent stub use Activation.
     
    EJP, Feb 7, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HK
    Replies:
    1
    Views:
    4,416
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  2. Replies:
    0
    Views:
    1,022
  3. Alexandr Molochnikov
    Replies:
    0
    Views:
    748
    Alexandr Molochnikov
    Sep 30, 2003
  4. Nicholas Zigarovich

    RMI registry weirdness, API versioning, and more

    Nicholas Zigarovich, Nov 18, 2003, in forum: Java
    Replies:
    0
    Views:
    569
    Nicholas Zigarovich
    Nov 18, 2003
  5. staff

    rmi.Naming and registry

    staff, Sep 29, 2004, in forum: Java
    Replies:
    0
    Views:
    929
    staff
    Sep 29, 2004
  6. Leny
    Replies:
    3
    Views:
    17,245
    Daniel
    Feb 1, 2005
  7. Jan Schulze
    Replies:
    1
    Views:
    794
    Esmond Pitt
    Mar 26, 2005
  8. Collin Miller
    Replies:
    10
    Views:
    1,019
    Roger Pack
    Jul 9, 2010
Loading...