RMI Section Index | Page 2
What changes do I have to make to my existing RMI program for it to use IIOP?
Sun has come up with a fairly good cookbook approach for converting existing RMI programs to use IIOP. See http://java.sun.com/j2se/1.4/docs/guide/rmi-iiop/rmi_iiop_pg.html#Convert. Also, note the...more
Can I use compression to improve RMI performance when transferring large datasets between the client and server?
Yes, you should be able to use the ZipInputStream and ZipOutputStream classes within a custom socket factory to give you a new socket type that transparently compresses data. For a tutorial on how...more
How can i use Generics to improve my Java RMI programs?
Generics and Method Objects is an excellent source for information on how to use "Generics" with Java RMI. More information on "Generics" can be found at Generics and Java.more
I started working on RMI recently and this particular concept is not clear to me:
I started working on RMI recently and this particular concept is not clear to me:
1.When the client invokes a remote method,which is void ,will the Client know this from the stub it gets from Regis...more
I Have a server that access a database via JDBC, and want to return ResultSets VIA RMI back to the Client.
I Have a server that access a database via JDBC, and want to return ResultSets VIA RMI back to the Client.
I have read that this can't be done (But it can be got you could go through your ResultSe...more
Every time my remote method is executed, it creates a number of threads and an equal number of other objects used to save data. However when the remote method returns, the memory allocated for these objects and threads is not freed. As a result, after executing the same method for a number of times, I get a java.lang.OutOfMemoryError.
Every time my remote method is executed, it creates a number of threads
and an equal number of other objects used to save data. However when the remote method returns, the memory allocated for thes...more
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
I made some changes to my remote interface and recompiled the server.
I made some changes to my remote interface and recompiled the server. Now, I am getting an :
"java.rmi.UnmarshalException: error unmarshalling arguments; "
Why?
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
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
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
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
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
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