• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI: set codebase and policy in program

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic