RMI Section Index | Page 3
Can I log the client-side remote calls of an RMI client?
Yes, with J2SE 1.4, you can now log client-side remote calls and exceptions of an RMI client by setting the system property sun.rmi.client.logCalls=true when starting up your client. You can also ...more
I am trying to run RMI over a SSL connection. The Server- and ClientSocketFactories seem to be straight forward but how could I specify when I request a remote object, what keypair to use for the SSL connection. That means I can't just load the keys from a static key file, I want to pass them dynamically, at least to the client.
I am trying to run RMI over a SSL connection. The Server- and ClientSocketFactories seem to be straight forward but how could I specify when I request a remote object, what keypair to use for the S...more
Is there any difference between JRMP (Java Remote Method Protocol) and RMI?
I hope this will clarify the concepts and it will answer your question:
Java RMI is just a set of APIs and a model for remote objects for building distributed applications. The original version of...more
I am using RMI, where the client is in Windows 2000 and the server is in Linux.
I am using RMI, where the client is in Windows 2000 and the server is in Linux. I have an object database at the RMI server for storing objects. The RMI client is available to any application that ...more
What are smart proxies?
A smart proxy is a class, instantiated in the client VM, that holds onto a
remote object reference. It implements the object's remote interface and
typica...more
How does SOAP compare with RMI?
Soap (Simple Object Access Protocol) and RMI are entirely different technologies. RMI is Java-centric, whereas SOAP, which uses XML, is language independent.
However there are some similarities....more
Are there any guidelines as to when I should use RMI and when I should prefer plain old socket connections? What are the advantages/disadvantages of each of these technologies ?
Prgramming sockets in Java is to apply a procedural networking idiom to an object-oriented computing environment. Sockets-based network programming can be a fairly laborious task. Here, all client...more
Is there an easy way for me to exchange XML objects between the RMI client and server?
Use JDOM. org.jdom.Document is a serializable object so you can exchange it through RMI without much trouble.
I have a Java app which uses RMI calls on bound interfaces to create remoteable objects.
I have a Java app which uses RMI calls on bound interfaces to create remoteable objects. This works fine. I call my create object method on an interface in the RMIRegistry created with Naming.Reb...more
Oracle 8.1.7, Windows and Linux clients running JRE 1.2.2_008, RMI server running on Linux or Windows NT with JRE 1.2.2_008.
We have the following setup:
Oracle 8.1.7, Windows and Linux clients running JRE 1.2.2_008, RMI server running on Linux or Windows NT with JRE 1.2.2_008.
The RMI server uses thin JDBC to communic...more
Is there a way to control the ports opened by an RMI server while accepting connections from a client. I see that I can control the port that an RMI server listens on while exporting the server object using UnicastRemoteObject.exportObject. However, when the client connects to the server, I see different ports being used between the server and the client when the server accepts a connection from the client.
Is there a way to control the ports opened by an RMI server while
accepting connections from a client. I see that I can control the port that an RMI server listens on while exporting the server obj...more
Do RMI clients always work on one single object instance of RMI server class?
Do RMI clients always work on one single
object instance of RMI server class?
Suppose I have a rmi server class:
class S {
...
public void changeDatabase(){
change a database
}
...
}
Than I get ...more
What is the meaning of marshalling and unmarshalling? Why is it done?
Marshalling is serialising an object to enable it to pass across process boundaries efficiently (normally conversion to a byte stream). Unmarshalling is carried out in the other process to reconst...more
RMI Server and static variable
RMI Server and static variable
I am trying to implement a RMI server that has a static variable.
Is there anyway the clients can access this static variable on the
server side and modiy it. After...more
Will multiple Lan cards cause problems using rmi?
Will multiple Lan cards cause problems using rmi?
If a host has two or more network cards (only one of which is Internet-enabled), how does RMI know which IP address to use? There seems to be a pro...more