• 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

Using JNDI for environment variables

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing an application for Windows that involves using several processes on different machines communicating via sockets. Each process on each machine needs to know what hosts/ports are available for communication. I don't want to be tied to a database (querying for available host info), I don't want to use a configuration file, and I don't want to be tied to the Windows registry. Is there a possibility using JNDI to (upon install) configure an environment variable that will hold the information concerning what hosts and ports are available for connecting? If so, please explain. I am new to JNDI.
Thanks,
Richard
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about using JMS?

You can make a topic (available hosts), that each part of your application would subscribe to.

As new hosts come on, they publish their info to this topic, and you can remove this info in a similar manner.
 
reply
    Bookmark Topic Watch Topic
  • New Topic