RMI Section Index | Page 5
Why do I continue to get ClassNotFoundException on server stub class? After I start rmiregistry, I start my server, but am getting the exception: java.rmi.ServerException: RemoteException occurred...more
How can I start an RMI server on demand? How can I start an RMI server on demand?
Is there a way to reuse threads that are used to handle incoming requests in RMI? I have read that there are application servers that will do this, but do not know of any. Are there any that do this, and is it possible to use standard RMI classes that come with the JDK 1.x to set up RMI to resuse incoming requests.
Is there a way to reuse threads that are used to handle... Is there a way to reuse threads that are used to handle incoming requests in RMI? I have read that there are application servers that wil...more
What actually is a 'callback' concept in RMI, and how... What actually is a 'callback' concept in RMI, and how does it work?
What are the legal RMI types refered to by the J2EE Developer's Guide? As one of the method requirements, it often says, "The arguments and return type must be legal types for Java RMI."
A legal value type for RMI is an object that implements the java.io.Serializable interface and is, in fact, serializable (An object that implements the Serializable interface will not actually be ...more
For what class? The basic rule for passing objects by RMI is that the class must implement the java.io.Serializable Interface. java.awt.image.BufferedImage, no. javax.swing.ImageIcon, ...more
Does RMI have a timeout period within which a remote invocation must return? Can I change this timeout period programatically for a specific remote method invocation?
Good question. We do not have "the" answer. This question has been here for several days so we submit the following: The Java specification leaves implementation details to those who wr...more
What happens if an object parameter that does not implement Remote or Serializable is passed to a remote object?
If a non-remote non-serializable object (an object which doesn't implement Remote nor Serializable interfaces) is passed as an object parameter, you will get a java.io.NotSerializableException No...more
If skeleton classes are not required in Java 2, how does the communication & invocation of remote methods actually take place?
A skeleton is a helper class that is generated for RMI to use. The skeleton understands how to communicate with the stub across the RMI link. The skeleton carries on a conversation with the stub; ...more
What is the cleanest way to design methods of remote objects that may return null? Normally, I let the method return null, and the code that calls the method checks for null before using the object that was returned. Unfortunately, this doesn't work with RMI, as if (obj == null) returns false, because the obj references a valid stub which references null.
We are not sure we understand the question. RemoteServer rs ... String back = null; back = rs.getName(); // here, when the remote method getName returns null, back is still null if (ba...more
How interoperable is the RMI-IIOP transport from Sun with existing ORBs? Is it possible to use my RMI client or server implementing RMI-IIOP with other ORBs like Visibroker?
If the existing CORBA object has its remote interfaces defined originally in CORBA IDL, then interoperability is not possible. RMI-IIOP applications can interoperate with other CORBA objects only ...more
Currently, the activatable object registered in rmid is activated on demand. How can I activate it without waiting for the first RMI call?
The activatable object is activated on demand by default. You can have it activated when the activation daemon starts by setting the restart boolean to true in the Activation Description. (s...more
An interesting article that talks about Servlets, Applets, and RMI can be found at: http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/more
For untrusted applets, the registry must be running on the web server from which it came. The necessary code follows: String url getCodeBase().getHost(); url = "rmi://" + url + "/se...more
rmic is the Java RMI Stub Compiler. The rmic compiler generates stub and skeleton class files for remote objects from the names of compiled Java classes that contain remote object implementa...more