RMI Section Index | Page 4
Check out the jGuru Networking FAQ.
Check out the jGuru Serialization FAQ.
Check out the jGuru Threads FAQ.
I need to generate a GUID and have seen suggestions about using an RMI server but nothing about how to actually generate the GUID itself.
I'm not sure you can generate a GUID without writing native code to get the network card number or ethernet address. Anyway, take a look at java.rmi.dgc.VMID for generating unique identifiers acro...more
Yes if your event extends EventObject which is serializable Be sure to define non-serializable properties of your new event as transient (note that doing so you won't be able to send them thru RM...more
Say I take some class file: how can I know if it is a stub or a plain class file? Do not tell me by file name. I need a technical answer that is made on the basis of the content of the binary file.
A stub is just a dummy implementation of a remote object interface delegating the real job using network. To understand if a class is a businness object or just a stub you have to check its source...more
Check out the RMI example which is part of the Sun JSSE sample code.
Is it possible to run rmiregistry on a different machine than the remote object? How is it possible for remote objects running on different machines to "share" a common registry?
I'm afraid the answer to your question is no. rmiregistry must be running on the same computer than the RMI server If you need to be able to run a service directory (an equivalent of rmiregistry)...more
Is it possible to use the java.server.rmi.codebase property with file urls which have spaces in the name? For this property, space is the delimiter which defines multiple entries in this property. This is particularly important on NT systems.
Is it possible to use the java.server.rmi.codebase property with file urls which have spaces in the name? For this property, space is the delimiter which defines multiple entries in this property....more
RMI stands for Remote Method Invocation and is a Network Layer to let a client application to invoke methods of objects located on a remote server. The word "RMI" is not specific to the...more
Why doesn't my applet's RMI-calls work in a web-browser? They are working correctly on a appletviewer. The applet is running within the web-browser, but RMI-calls are not working at all. Any idea what the problem is? Can there be some security problems? I am using both Internet Explorer 5.0 and Netscape.
RMI doesn't work in Internet Explorer because Microsoft decided not to support it in its attempt to ruin Java. They did put a patch file somewhere on their site that you can download and install, ...more
How can I start rmid in the background under win32? I found that javaw sun.rmi.registry.RegistryImpl does it for rmiregistry. Is there something like this for rmid? If I use "start rmid", I get a dos console all the time.
Answer by Luigi Viggiano Try hiding it. You can create a Windows Link (something like a .pif) and specify the starting position (x and y) outside the visible area of the screen (like x=-1000, y=-...more
Answer by Edward Harned Re: about rmi callback See the jGuru example at Sun's JDC: http://developer.java.sun.com/developer/onlineTraining/rmi/exercises/RMICallback/index.html more
We assume you mean: java.sql.Connection from java.sql.DriverManager.getConnection(). The answer is that you cannot. You cannot pass a reference to something other than a RemoteObject() with RMI, ...more
Can I use the RMI registry for the commercial purpose without having to pay Sun royalties or licensing fees for the same? My guess is I don't since it is a part of the JRE, but what is the definitive answer on this?
Can I use the RMI registry for the commercial purpose without having to pay Sun royalties or licensing fees for the same? My guess is I don't since it is a part of the JRE, but what is the defi...more