Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI: set codebase and policy in program

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