0

I deploy a RMI Service ,write a RMI Client(Java SE project) to access it and is ok, but the some code in web project, I use wireshark to find that every RMI request sent from our client to our server containing the list of all jars in the classpath for the application.

My problem is similar to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6664389

How to solve it?

9
  • Don't use the built in RMI? ;) You can use a plain socket or other RPC libraries which are much more efficient, if you really need to. However unless you know you have a performance problem I would leave the builtin RMI as it is. Aug 21, 2012 at 7:17
  • I can't agree more ,but this is a Historical issues
    – fuyou001
    Aug 21, 2012 at 7:22
  • If it hasn't been a serious problem for some time.... ;) Aug 21, 2012 at 7:37
  • previous the issue is not serious ,because PV is small ...
    – fuyou001
    Aug 21, 2012 at 7:47
  • Which why I suspect that RMI doesn't have a simple solution to make it more efficient. Aug 21, 2012 at 7:49

1 Answer 1

1

Don't use the codebase feature. It is rather rarely used, particularly in the client -> server direction. It won't work unless the peer is using a security manager. In other words don't set the java.rmi.server.codebase system property at the client.

Or are you using Java Web Start as per the bug report and haven't told us?

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.