Two Laptop Bag
The moose likes Java in General and the fly likes Start rmiregistry without command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Start rmiregistry without command prompt" Watch "Start rmiregistry without command prompt" New topic
Author

Start rmiregistry without command prompt

Ray Dawson
Ranch Hand

Joined: Sep 16, 2011
Posts: 75
How do I start the rmiregistry command outside of command prompt ?

I'm using BlueJ. Will switching over to Eclipse help ?

Help needed ASAP
John Jai
Bartender

Joined: May 31, 2011
Posts: 1778
Ray,

You really need to EaseUp. You have been asked before too your earlier thread

To start registry in code you can use like
Ray Dawson
Ranch Hand

Joined: Sep 16, 2011
Posts: 75
John Jai wrote:Ray,

You really need to EaseUp. You have been asked before too your earlier thread

To start registry in code you can use like


How does the server specifies what is the ip address of the location ?
And how does the client connects the sever.

John, could you please provide me the lines where the server ip addr & port num. is specified. And how the client connects to the server

Like user provides the ip addr & port no. of the server & the client connects to it.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1778
I was able to test this in my local. The port will be specified in the server class - in the example above its 1099.

Client code can then be written like below. The given ip is my system ip.

Ray Dawson
Ranch Hand

Joined: Sep 16, 2011
Posts: 75
So can the server specify any port no. it wants ?
And how does the server specify its IP addr ?

If the ip is dynamic, then how does the client connects to it ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32712
    
    4
Too difficult a question for "beginning". Moving discussion.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Start rmiregistry without command prompt
 
Similar Threads
Platform Independent Command Line
How wo stop and kill rmiregistry ?
How to run RMI in NetBeans?
RMI UnmarshalException when starting RMI server -
classpah in readme