Questions tagged [rmiregistry]

RMI registry is kind of RMI naming service (a server application) where remote objects could be registered under some string name so they could be found and accessed by other clients connecting the same registry.

RMI registry is an independent executable, a part of Java runtime package. It must be started, binds to the given port (1099 by default) and listens to remote or maybe local network calls.

Java code that uses RMI must obtain the registry through LocateRegistry.getRegistry(host, port) or similar method. Normally, at least some RMI-capable applications access the registry remotely over the network.

74 questions
2
votes
1 answer

RMI: check client crash

I am programming a simple client/server application using Java-RMI. I would like to know when all clients died, in order to shut the server down. After having done some research on the web, I found out that I could make my server implement the…
Jean Gauthier
  • 265
  • 4
  • 9
2
votes
1 answer

RMI Registry permission denied

I am trying to get started with java RMI but I keep running in to an error when my components try to bind (or even connect) to the rmiregistry. Whenever I try to bind anything to the rmiregisrty I get a java.rmi.ConnectIOException. I am honestly…
2
votes
1 answer

rmi registery problems

Dear stack overflow users. I've read a lot of RMI registry problems and tried them to my problem but to no success. So here is my case and I hope someone can at least help me along a bit. I am building a multi player pacman for a school project. It…
Bram
  • 765
  • 1
  • 6
  • 14
2
votes
1 answer

LocateRegistry.createRegistry() doesn't keep application alive

I've rubberduck debugged every line of code along with multiple working examples but for some reason my java application just closes when I start an RMI server. I expect the java application to keep running because I have started a Registry and I…
Tvde1
  • 1,246
  • 3
  • 21
  • 41
2
votes
1 answer

RMI Connection error Client Side

I am getting an error when attempting to connect to an RMI service: I am executing the client code using: java -Djava.security.manager -Djava.security.policy=path\to\policy.all -jar "path\to\jarfile" "localhost:2020" The code I am using is: public…
chrisg
  • 40,337
  • 38
  • 86
  • 107
2
votes
0 answers

Two RMIRegistry.exe on the same port?

I'm working on a Windows 7 (Professional, 64bit) system and I've seen the current situation, can someone highlight me and explain how's possible? I have installed both Java 6 (JRE only) and Java 7 (JDK), both 64 bits. From command prompt I run…
Marco Bresciani
  • 142
  • 1
  • 10
2
votes
1 answer

Java RMI - check if registry exists

I'm having a little trouble with Java RMI. Am I able to check if a registry exists? This line of code is supposed to give me the registry. LocateRegistry.getRegistry(ip, Registry.REGISTRY_PORT); But when I call it with a wrong IP address or an IP…
X.X_Mass_Developer
  • 717
  • 1
  • 8
  • 23
2
votes
3 answers

Simple entry point for single RMI service?

I have several services which export an RMI interface. They used to offer this by creating their own registry (with LocateRegistry.createRegistry) and binding it there. However, that became impossible when the services were moved to run as separate…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
1 answer

java: rmiregistry setup

So I was using LocateRegistry.createRegistry(), but this has a problem: namely, it runs within the process that calls it, so if I am using more than one JVM, then a crash to the JVM that started the registry will take down the registry for all the…
Jason S
  • 184,598
  • 164
  • 608
  • 970
1
vote
5 answers

RMI Server Stops?

How do I keep an RMI server running? It currently, just binds and object, then exits.. public class WutServer { public static void main(String[] args) throws RemoteException { Registry registry = LocateRegistry.createRegistry(1099); try { …
Verhogen
  • 27,221
  • 34
  • 90
  • 109
1
vote
1 answer

Java RMI connection over internet

I'm trying to get remote objects from a server hosted on different network. I'm able to connect on same machine and on same network, but when I try to get it from different network I get: Connection refused to host: 192.168.1.131; nested exception…
TheEnigmist
  • 906
  • 1
  • 10
  • 23
1
vote
3 answers

Running an RMIRegistry on a different host to RMIServers

Is this possible? (Assuming Java 6) A contrived/simplistic example to illustrate my point is: I have a well-defined RMI interface that will never change (a single JAR file, no template parameters) an RMIRegistry running on host X; RMI Services…
Ben
  • 23
  • 2
  • 5
1
vote
2 answers

RMI Binding Issue (from Windows RMI Server to Ubuntu RMI Registry)

I have an RMI Server which correctly binds to an RMI Registry when running on localhost (to demonstrate that things are setup correctly). The code which does this is: private void exposeTickHistoryRemoteProvider(TickHistoryRemoteInterface…
Ben
  • 23
  • 2
  • 5
1
vote
1 answer

How to tell rmiregistry where to look for the classes?

Oracle says that registry is a bootstrap naming service that is used by RMI servers on the same host to bind remote objects to names Now, I have such a server that uses rmiregistry for providing JNDI. public class ObjectProvider { public…
gicig
  • 334
  • 3
  • 14
1
vote
0 answers

log4j2 strange rolling log behavior and rmiregistry outputs "ERROR StatusLogger Log4j2 could not find a logging implementation..."

I just started using log4j2. I am using it for multiple JVMs that use RMI. I have two problems. I start up the rmiregistry as it's own executable using the same CLASSPATH as the application. It starts without any errors, but once an RMI client…