Using RMI in a plugin...
Are there any tricks to using/running an RMI server from within a plugin?
I'm calling a LocateRegistry.createRegistry() on a custom port, but I'm
getting connection refused whenever I bind to it. The code runs fine if
called outside of IDEA ( or as part of a test case/run profile ).
I'm noticing alot of java security exceptions in the IDEA log file so I
guess I need to somehow work around this.
Or does IDEA provide some OpenAPI RMI wrapper?
Please sign in to leave a comment.
Hi Mark
when writing the RMI explorer plugin
(http://www.intellij.org/twiki/bin/view/Main/RmiExplorer)
I had to set a special security manager.
You can find the sources there as well, the setting of the security-manager
is in Line 474 of RmiPlugin.java.
I was just so lazy to allow everything in my security-manager, perhaps you
want to be more specific.
-claude
"Mark Derricutt" <mark@talios.com> wrote in message
news:datim7$e9r$1@is.intellij.net...
>
>
>
Claude Leuchter wrote:
Cheers, will check it out - I was gonna look up the plugin actually as I
remembered seeing it awhile back.. That seems to be working, now I just
have a classpath issue :) But for now I think its time to sleep.