• Post Reply Bookmark Topic Watch Topic
  • New Topic

2 RMI specific questions!  RSS feed

 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I have two specific RMI question.
Question 1: Is there any way i can register a remote object in an miregistry which is found on a different machine?
I'll explain myself. What i need is to have various apps around a network which all have remote object, but i don't want an rmiregistry open for each idividual app.
I read on some page that this was possible in older versions of RMI, but if you try it now you'll just get a security problem (even if you establish the correct security policy) or an unknow host exception, or something similar.
Any ideas?

Question 2: In windows, how can i hide the rmiregistry console which pops up when i do >start rmiregistry. I can't have any console windows open at all. I need it running as a background thread only.

Thanks and regards,
Marcelo.
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer 1 -- You cannot.

Answer 2 -- You can create a script and set the properties to run: minimized. (Sometimes this works.)
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Edward.
For question 2, i figured out a durable solution (i hope) before you replied. I would basically do > start /B rmiregistry
The /B is to run it as a background thread.

For question 2, can you (or anyone) think of a solution for this problem? I don't want to use sockets. I need the network transperacy which RMI provides.

Thanks again,
Mars.
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For question 1, you can always use Jini (see jini.org). It's gotten a lot easier to use and there are plenty of examples out there.
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Edward.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!