rmi

Which Weblogic 10.3 JAR contains weblogic.rmi.RemoteException

I am trying to track down the Weblogic 10.3 JAR that contains weblogic.rmi.RemoteException in order to solve a build path issue. Thanks in advance. ...

Creating a process from within an instance of Jetty that was launched from Maven

Hello, I'm looking to launch a separate Java process from within an instance of a Spring controlled bean that runs in a Jetty container. The Jetty instance was launched from mvn jetty:run This separate process communicates with the launching process via RMI and I'd like to be able to maintain a hook to the process's ID or Process objec...

java.rmi.NoSuchObjectException: no such object in table

I am writing a very simple RMI server, and I am seeing intermittent java.rmi.NoSuchObjectExceptions in the unit tests. I have a string of remote method calls on the same object, and while the first few go through, the later ones will sometimes fail. I am not doing anything to unregister the server object in between. These error do not...

RMI: What change needs a recompiled impl class

I have two application which communicates by using RMI objects. I do have an interface, an implementation class and the generated stub class. I recognized, that some changes in the impl class take me to create a new stub class. My question is, what changes i can make without re-compiling the stub again? As far as What i know: I can ...

Exposing multiple objects with RMI in Spring

How do I expose multiple objects with RMI using Spring? I start with what is written here. What if I want to expose more objects, must I declare another instance of RMIServiceExporter? ...

How can I guarantee a "stay alive" heartbeat is sent?

We have an RMI client application written in Java which needs to send periodic "stay alive" messages to a server application. We have implemented this as a separate heartbeat thread, which sends the stay alive message to the server, then sleeps for 15 seconds using Thread.sleep(). The thread is set to be high priority: Thread heartbeat...

RMI's dynamic proxy stub implementation

I want to understand how the dynamic proxy stub implementation is actually done behind the scene. According to what I read, by the time a remote object is exported if no pre-generated stub class is found, the RMI runtime would generate a dynamic proxy to act as the stub. That stub is then bound to the RMI Registry and later accessible ...

Service Host Resolving - C# Equivalent to RMI Registry?

I'm taking a Masters capstone course early and doing my project in C# while everyone else is doing theirs in Java. The project has 4 services and requires a name server that maps service names to sockets. The instructor is suggesting that the students use RMI to build this registry. Since I'm not very familiar with Java, and the instr...

Secure Serialization

I'm writing a client/server that will allow Customer Data to be shared between our head office and on-the-move sales folks within the company. The server downloads and writes the customer data in XML files but also keeps the data in memory so that it can act as a local client as it were. I'm planning to Serialize the ArrayList so that ...

RMI/Exception handling in a custom JVM

I know that a custom JVM can behave a little differently, and I'm trying to see if my observed behavior is the same as the real JVM. Also, I'm looking for some way to consistently make this stuff work. The worst part I've been seeing is that exceptions are being completely eaten by the JVM. For instance: public myMethod(String test) ...

How to implement generic test for RMI connection, J2EE services?

I'd like to implement a little test to check connectivity to J2EE services over RMI. It needs to be generic, so that I could just give it a property file with the following properties set in it: java.naming.factory.initial=oracle.j2ee.rmi.RMIInitialContextFactory java.naming.security.principal=user java.naming.security.cred...

RMI interface design principles

Im currently working on an RMI client that will talk to an RMI server (developed by a different division of the company I work for). The other team own the interface, but IMO it's overly complex, with many different types being passed backwards and forwards, as well as an unnecessarily (IMO) complex exception hierarchy. I've expressed ...

Exceptions over remote methods

What are the best practices for exceptions over remote methods? I'm sure that you need to handle all exceptions at the level of a remote method implementation, because you need to log it on the server side. But what should you do afterwards? Should you wrap the exception in a RemoteException (java) and throw it to the client? This woul...

RMI-How does passing a remote object through a remote method work?

As I understand it, once I've set up an RMI communications link between two systems, I can pass an object that implements "Remote" into one of the remote methods that takes an object of that type and the far-end will just get the remote interface for the new object (in other words, it will become a new remote connection as opposed to jus...

How to improve the performance of Client-Server Architecture Application?

We have a product built on the Client-Server architecture. Some details about the technology stack used. Client - Java Swing Server - RMI Java Database - Oracle The clients are located at different parts of the world but the java server & the oracle database are located on the same machine at Sweden. Because of this there is a lo...

Using single RMI Registry

Hi I've been using RMI for a project I am currently working on and I want to bind from multiple hosts to a single RMI registry. However when I attempt to do so I get an error saying java.rmi.AccessException: Registry.Registry.bind disallowed; origin / 192.168.0.9 is non-local host I did so googling and it seems that RMI stops remote...

How to route to the nearest RMI Server?

In continuation to my question How to improve the performance of client server architecture application I have decided to maintain a centralized database and several slave server-database configuration. I plan to use Symmetric DS for replicating between the slave and master database. Each server-database configuration would be installed...

How do I register a server in the default RMI registry for JBoss and access it from a client running in another JVM?

I am trying to access a Jackrabbit repository deployed on a JBoss application server via RMI. I am getting the following exception when I try to connect to the factory using ClientRepositoryFactory.getRepository('rmi://xxx.xxx.xxx.xxx:1099/imageserver'). But if I create a web application that starts a new RMI registry on the server with...

RMI Object transfert

Hi, i would like to transfer variable from an RMI client code source to a window code source for example a variable for know if the client is connected to the server from the client class to the window class. Thanks! ...

JBoss UnknownHostException when on different network.

I'm having a bit of a problem with getting JBoss working across networks. As a quick overview, we have a development network (which I'll call DEV), and a client network (say.. CLIENT!). These are connected via a firewall. In the Dev network, the server is known as 192.168.100.50, on the client network it's known as 10.0.100.50. DNS in bo...