Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI: set codebase and policy in program  RSS feed

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

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.security.policy
- 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.

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