Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI: set codebase and policy in program  RSS feed

Dirk Schnelle
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am developing an eclipse plugn that communicates via RMI to a server.

To activate dynamic code download, I have to proved the two following system properties:
- java.rmi.server.codebase

Currently I set them by a System.setProperty call.

I think that this might cause some trouble, if other plugins also use RMI and use the same mechanism to provide these properties.

Is there a way to set these properties from within the porgram?

I am thinking about something like the HashMap to provide the settings for JNDI to create the initial context.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!