rmi

which way is better in java?

Hello everyone I want write a Special Messenger(should be able to some transaction) with RMI(Remote Method Invocation) or Network(Socket) , It should be Fast Secure Convenience(easy to use) and of course beautiful :) It's for a big LAN and it should be able to handle our transaction in Oracle DB !!! which way is better in java? ...

rmi application

i want to write a rmi application which the server has the ability to run different programs like media player in the client, and even shut them down. how can i do this? ...

desktop sharing with java rmi

i want to write a java rmi application which the server has the ability to share its desktop between several clients. what is its main method to share desktop? is there any where that i find a good sample code for this application? ...

JAVA RMI dispatchUncaughtException - Interface casting problem

For school we made a Java application with RMI, there are 3 applications: Server, Client and Rekenaar. The line where it goes wrong is the Line: "test = (Range[])m.getAllRange();", it gives an dispatchUncaughtException. package rekenaar; import server.Opdracht; import java.rmi.Naming; import java.util.logging.Level; import java.util.l...

creating stub classes for a rmi project

hi i have an assignment with java rmi, and now i want to create the stub classes for this project, but i dont know how. i want to learn creating stub for rmi projects. can you help please. i want you to answer me in detail. ...

help for solving problems in a java rmi assignment

Hi, I want to write an application to share desktop between client and server with java rmi. This is the interface: public interface IServer extends Remote{ public void share(BufferedImage image) throws RemoteException; } ----------------------------- // This is the server side code: public class ServerFrame ex...

help for solving problems in a java rmi assignment

Hi, I want to write a client/server application with rmi and I want the client have the ability of running media player in the server’s system. Can you help me please? Can you show me the way in the code snippets please? ...

help for solving problems in a java rmi assignment

Hi I want to write a client/server application with java rmi, that the client has the ability to run the window media player in the server side. I have used the ProcessBuilder class like this: ProcessBuilder process= new ProcessBuilder(“mwplayer”).start(); but it doesn’t work. It cause these exceptions: java.io.IOException: Cannot ru...

Spring Async RMI Call

Is it possible to invoke Java RMI asynchronously? I'd like my RMI call to return immediately and for the server to invoke a callback once a task is completed. I'd currently using RMI support from Spring framework, and i couldn't find any documentation describing it in spring, I suspect I'll need to implement it myself. Please provid...

Java RMI and Thread Synchronization questions

Hello Stack Overflow! I actually have two questions about Java RMI and thread synchronization: 1) If I implement my RMI remote methods as synchronized, are they guaranteed to be mutually exclusive? I need to make sure that no two of my RMI methods (methods offered to clients) execute at the same time. 2) I have a method that the serve...

Java RMI SSL poss keystore / truststore error?

Using the below code to test an ssl connection over RMI: public class HelloImpl extends UnicastRemoteObject implements Hello { public HelloImpl() throws RemoteException { super(0, new SslRMIClientSocketFactory(), new SslRMIServerSocketFactory()); } public String sayHello() { return "Hello World!"; } p...

Java RMI with no SecurityManager

I have some older code that doesn't use a SecurityManager but does use RMI. From what I have read RMI requires a security manager, but the code seems to work and run fine on the same machine and between two machines. I have tested this stuff on 1.5, but not on 1.6. I can't find any resource that discuss when a SecurityManager is requi...

Is communication in java rmi secure?

Is communication between clients and servers in java rmi secure (i.e. encrypted by default)? ...

Java RMI - Socket Permission issues

Hi, I'm having problems trying to connect my java program to 2 different sockets. Basically I want to initialise my RMI Server (connecting to port 1099) and then also initialise PrologBeans on port 10002. The initialisation seems to work fine for both, but as soon as I try to access the prologBeans I get the following error: Exception ...

make RMI Stub with netBeans

I see some where in the web that we can make Stub dynamically with Netbeans and it`s a good feature of it. I search a lot but all hits are from Old version (4 or 5) and others told a complete reference is in Netbeans website but the links is removed and i couldn`t find it in the site. Broken Link : rmi.netbeans.org Please if there is ...

what is the real advanteges of RMI call back?

Hi, I have read a lot about RMI call back but I need to know the advantages of using that and is there any special code for making RMI callback? ...

benifits and disadvanages of using java rmi

what are the advantages and disadvantages of RMI? ...

rmi java.security.AccessControlException

Hi all, I am new to RIM, and currently taking the tutorial at http://java.sun.com/docs/books/tutorial/rmi/overview.html I am able to start server like: C:\Documents and Settings\myHome>java -cp c:\home\ann\src;c:\home\ann\public_ html\classes\compute.jar -Djava.rmi.server.codebase=file:/c:/home/ann/public_htm l/classes/compute.jar -Dj...

RMI ClassNotFoundException

Hi, I have an RMI program which runs fine on my computer, but when I run it on my schools computer I get a ClassNotFoundException for my class that is extending Remote. I've looked at some similar questions, my errors are almost identical, but the solutions offered there are not working for me. I can't pass arguments to RMI registry be...

Java RMI Netbeans Packages

When using Netbeans I am able to run RMI applications if I don't put the source files in a package, however when I try and split it up into packages. I start to get class not found exceptions any help would be greatly appreciated. ...