The inconvenience of RMI (workaround solution?)

Hey guys..

I want to use RMI for an application that I'm developing for someone; however, to use RMI, before hand, you need to run rmic.exe, rmiregistry.exe, etc..
However, I can't expect my client to have to run these programs individually, so, what is the best workaround for this? Should I just make a couple of calls to Runtime.exec() ?

Cheers.
LVL 25
InteractiveMindAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
the client doesn''t need to run rmic, thats just needed during development.
Abd you don't need to run rmiregistry either, you can start up the registry from your server code.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Try a batch-file.
0
 
objectsCommented:
to start registry use:

LocateRegistry.createRegistry(port);
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
InteractiveMindAuthor Commented:
Thank you again :)
0
 
InteractiveMindAuthor Commented:
for this line:

LocateRegistry.createRegistry(port);

would I need to use that in the server application, client application, or both? (I'm sure it seems really obvious, but I have no idea. lol)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> I can't expect my client to have to run these programs individually

I thought you meant the *client human* who would sit at the server and run those ;-) not the client-process.
0
 
objectsCommented:
> would I need to use that in the server application, client application, or both?

server
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> would I need to use that in the server application

Only the server.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Ah, didn't refresh.
0
 
InteractiveMindAuthor Commented:
:) ta
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.