Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:11:30+00:00 2026-05-31T17:11:30+00:00

I was going through the RMI documents and was wondering if it is possible

  • 0

I was going through the RMI documents and was wondering if it is possible to automate RMI?
For example i have 4 classes
1 interface, 1 implementation class, 1 server class and 1 client class.
Now in order to access an object remotely one has to

  1. compile all classes

    javac class.java
    
  2. start rmiregistry
  3. start server
  4. run client

    java client
    

which will display the output.But can I create, export and bind the server object to rmi registry automatically when its class object is created? So that the server is ready as long as the object is alive and tha client can start accessing the methods?

I have only 1 class that is a server and it is not accessed by any other classes except for the client, so there are no security issues also involved in this.

My prime moto is to execute all the 4 steps listed above in the code itself and make the server class methods accesible to client.No manual execution of javac, start rmiregistry, start server and java client.

Also is it possible for the client to access the server without any commands like start rmiregistryand start server being run from the server side if the server uses LocateRegistry.getRegistry() instead of LocateRegisgtry.creareRegistry(1099) ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:11:31+00:00Added an answer on May 31, 2026 at 5:11 pm

    If you’re content with having the lifespan of the registry be the same as the lifespan of the server process, the LocateRegistry class has createRegistry(...) methods which allow you to build an in-process registry easily. All the rmiregistry program does is put a tiny little wrapper around a call to LocateRegistry.createRegistry(1099);.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Going through happstack-lite tutorial : we build functions that have return type of ServerPart
Going through the microsoft authentication tutorial listed here they have you create a master
Going through some documentation on modifying CGImageRef data, I came across a strange example
While going through SWig generated wrappers, I find that the PInvokes don't have any
While going through some tutorials, I have encountered lines such as this: ((IDisposable)foo).Dispose(); Ignore
Going through the php.net site, it had an example for header, which says would
Been going through some framework classes using reflector and noticed a number of the
While going through one project, I have seen that the memory data is 8
While going through the iOS-4 Multitasking for fast context switching, I have a doubt
Going through the documentation of the SDF, i found many classes like the BitmapEx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.