[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

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.
0
InteractiveMind
Asked:
InteractiveMind
  • 4
  • 3
  • 3
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Try a batch-file.
0
 
objectsCommented:
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
 
objectsCommented:
to start registry use:

LocateRegistry.createRegistry(port);
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now