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. Advertising

  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. Advertising

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:
    3,697
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  2. Replies:
    0
    Views:
    774
  3. Leny
    Replies:
    3
    Views:
    16,977
    Daniel
    Feb 1, 2005
  4. Jan Schulze
    Replies:
    1
    Views:
    593
    Esmond Pitt
    Mar 26, 2005
  5. Collin Miller
    Replies:
    10
    Views:
    657
    Roger Pack
    Jul 9, 2010
Loading...

Share This Page