RMI Section Index | Page 2
I am trying to do something using RMI Activation
I am trying to do something using RMI Activation and I read an article discussing RMI activation in which the author said:
"There is no standard way to measure whether an object is "heavily" or "l...more
What is the case for RMI? I used to do RMI before the EJB era.
What is the case for RMI? I used to do RMI before the EJB era.
Can we not do everything we want to with RMI probably with a
stateless session bean? Why would one use RMI instead of a stateless
se...more
What is the meaning of marshalling and unmarshalling?
Omar,
In few words, "marshalling" refers to the process of converting the data or the objects inbto a byte-stream, and "unmarshalling" is the reverse process of converting the byte-stream beack to...more
A client I've written is trying to connect to a server that resides on another machine. The server is an implementation of the interface MyServer, and is called MyServerImpl. During the Naming.lookup() call in the client I'm getting a ClassCastException:
A client I've written is trying to connect to a server that resides on another machine. The server is an implementation of the interface MyServer, and is called MyServerImpl. During the Naming.look...more
I am suddenly seeing java.lang.ClassMismatchError in my RMI application that was previously running fine. Why?
The most likely reason is that some of the of the classes may have been modified and recompiled while the RMI application was still running. You might want to restart the client, server and rmireg...more
Is it mandatory for me to instantiate a security manager within my RMI server?
It is not mandatory to set a security manager for the use of Java/RMI. The reason to do this is so that the Java/RMI client can handle serialized objects for which the client does not have a corre...more
Is there any way by which I can force RMI invocations to always tunnel via HTTP?
Firstly, you need to configure the call forwarder program running at a specific url (i.e./cgi-bin/java-rmi.cgi). To force http-tunneling you have to create a sun.rmi.transport.proxy.RMIHttpToCGISo...more
Can I use Swing components within RMI?
Do you mean to pass Swing Components as parameters to remote objects using RMI? If so, you are probably out of luck as most if not all of them are not directly Serializable.
For some Swing & AWT...more
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
Is it true that I cannot send data greater than 64K between an RMI client and server?
Yes, that's true only with RMI systems prior to JDK 1.3, where you cannot serialize a string greater than 64k. You would have a java.io.UTFDataFormatException thrown if you tried. However, since ...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
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
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
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
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