• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 RMI specific questions!

 
Ranch Hand
Posts: 528
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Edward.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic