Questions tagged [rmi]

Remote Method Invocation (RMI) is Java's object-oriented remote procedure call (RPC) mechanism.

Java's Remote Method Invocation (RMI) is the standard object-oriented RPC mechanism in all versions of Java. RMI is built upon the Java platform's object serialization mechanism, provides a simple naming service, and provides a distributed garbage collection (DGC) mechanism.

There are at least three RMI protocols: JRMP: Java Remote Method Protocol, built into the JDK; RMI/IIOP: Internet Inter-Orb Protocol, from CORBA, built into the JDK; and JERI: Java Extensible Remote Invocation, which was the subject of two rejected JSRs and eventually appeared in Jini 2.0, whose main purpose was to greatly improve several aspects of secure RMI. RMI/IIOP is the standard protocol for J2EE, although various J2EE vendors have their own protocols as well.

2607 questions
0
votes
1 answer

RMI - Getting a ClassNotFoundException at runtime

I've spent almost five hours trying to resolve this, to no avail. I've created an application that uses RMI. It compiles fine, but I can't it get it to run. All my class files are in C:\Users\Benji\Desktop\ass2\build (short for "assignment"; nothing…
0
votes
0 answers

How to force trigger Distributed GC(System.gc()) hourly?

Our application(-Xms=8GB, -Xmx=8GB) is running on the oracle Java 1.8. If the application uses RMI, Distributed GC(System.gc()) is supposed to be invoked every hour by default. https://docs.oracle.com/javase/9/gctuning/JSGCT.pdf, under page 11-…
SJ Yim
  • 1
0
votes
0 answers

Is there a way to communicate synchronously between two EARs using SpringBoot?

I have two EARs which are deployed on a single Weblogic server. The two EARs are A and B. "A" has a service that "B" needs to access. B needs to access this service and get the data synchronously. I do not want to use REST or other HTTP methods as…
0
votes
1 answer

Corda performance tool - setting of multiple jmeter servers

I have setup a JMeter client and server , following the instructions in the documentation . I could successfully invoke transactions locally as well remotely . Now I want to increase the number of JMeter servers added the server Ip and port in…
Pooja
  • 1
  • 2
0
votes
1 answer

Locate method from subclass in superclass using reflection

I'm working on a reflection system for use with KryoNet RMI to allow me to do unreliable object calls. However, this relies on using an annotation to mark various methods as being '@Unreliable'. The problem here if I store a map of Methods to their…
Chris Dennett
  • 22,412
  • 8
  • 58
  • 84
0
votes
3 answers

Large byte array transfer to client

Let me present my situation. I have a lot of data in bytes stored in files on server. I am writing and reading this files using AIO that is coming in JDK7. Thus, I am using ByteBuffer(s) for read and write operations. The question is once I have…
Ivan Senic
  • 539
  • 8
  • 13
0
votes
1 answer

java rmi concept

I am trying to implement a simple chat application that connects clients through a central server, with other client so they can exchange messages and files. I also need to implement a notification framework. for example, if a user signs…
amana
  • 83
  • 1
  • 1
  • 3
0
votes
1 answer

When creating an RMI application on two different machines Client and Server Where should we Define our Interface Client side or Server side?

I want to write an RMI application using two laptops which adds two numbers? i have made one laptop as my server and another laptop as my client. when we want to define the interface which is extending from Remote interface on which machine should i…
0
votes
3 answers

Java notification framework using Java RMI

i must build a java application that implements a distributed notification framework using java rmi. I could not find anything on the web to get me started. any help?
aman
  • 3
  • 2
0
votes
1 answer

java.lang.UnsupportedClassVersionError even though java -version and javac -version are the same

In my university we are learning about writing RMI applications. When I first tried running the example application in Eclipse 2019-03 I ran into the error: java.lang.UnsupportedClassVersionError I successfully ran other projects (non RMI) without…
Tom Smith
  • 153
  • 1
  • 8
0
votes
0 answers

Java configuration cache for repeated unit and batch testing called from sererate JVM instances?

Scenario: Each time I run a Java batch job for testing all the configuration and bootstrap applications need to load. This includes logging, hibernate type registration, global properties etc. This can take up to 3 minutes and if I'm busy…
JesseBoyd
  • 1,022
  • 1
  • 13
  • 18
0
votes
3 answers

Access remote objects with an RMI client by creating an initial context and performing a lookup

I'm trying to look up the PublicRepository class from an EJB on a Weblogic 10 server. This is the piece of code: /** * RMI/IIOP clients should use this narrow function */ private static Object narrow(Object ref, Class c) { return…
L4zl0w
  • 1,069
  • 4
  • 15
  • 42
0
votes
1 answer

Seperate Consoles for Client and Server (Java RMI)

I am writing a client-server application using Java RMI. Now, my question is I have multiple clients and a server, to see some communication, I have System.out.println statements (SOPs) in both client and servers, but I see all the outputs on just…
Eternal Noob
  • 2,717
  • 5
  • 27
  • 41
0
votes
0 answers

javax.naming.ConfigurationException: Problem with PortableRemoteObject.toStub(); object not exported or stub not found

I am writing a Iiop server and I encountered the following error when I try to run it: Exception in thread "main" javax.naming.ConfigurationException: Problem with PortableRemoteObject.toStub(); object not exported or stub not found [Root exception…
Artyomska
  • 1,309
  • 5
  • 26
  • 53
0
votes
1 answer

java RMID example

I want to experiment with Activatable objects in RMI. Is there a simple example somewhere that works? I'm trying to use Oracle's tutorial but I get java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1098…
Jason S
  • 184,598
  • 164
  • 608
  • 970
1 2 3
99
100