Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

System Design Question

  • 05-05-2008 02:13PM
    #1
    Closed Accounts Posts: 362 ✭✭


    Background:
    I have an intranet application.
    Part of it is a java desktop application deployed via Java Webstart.
    This app then communicates with the server using the http protocol,
    to do this I have to hard code the server address.

    Problem:
    I have this deployed in 50 companies.
    Every time I do an update to the system, I have to do a build for each company to change the server address, not a huge problem at the moment, but still time consuming.

    Question:
    Any suggestions as to how I could get the application to get the server address on the fly, so i don't have to hard code it.


Comments

  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Have a fixed location that supplies the server address? and load it from there - or even store the server address in a file on the local machine and just update the text file rather than the server.


  • Registered Users, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭ressem


    Well JINI is designed for service discovery on a LAN.
    http://www.computing.dcu.ie/~davids/courses/CA464/week2.pdf

    --edit: wrong link pasted. This is someone else's code to do simple discovery by multicasting. --
    http://www.developer.com/article.php/10915_3728576_1

    for sample code for a client and server.

    Though the alternative of allowing the server address to be set in a JNLP xml <param> would make sense for autodiscovery pessimists like me.


  • Closed Accounts Posts: 362 ✭✭information


    Webmonkey wrote:
    Have a fixed location that supplies the server address? and load it from there - or even store the server address in a file on the local machine and just update the text file rather than the server.
    Than would make the job even more time consuming
    ressem wrote:
    --edit: wrong link pasted. This is someone else's code to do simple discovery by multicasting. --
    http://www.developer.com/article.php/10915_3728576_1
    That looks like an option, might be a bit heavy weight if it has to be run every time tha app starts
    The client side of involved a little Swing app that ran on their desktop and interacted with the a network service. However, given the rather dynamic nature of our working environment, I didn't want to have to distribute an update for the client Swing app just because I had to move the service to a different host machine.
    ressem wrote:
    Though the alternative of allowing the server address to be set in a JNLP xml <param> would make sense for autodiscovery pessimists like me.
    Thats the solution I'm looking at, so when the server starts up at installation/update it would perform a one off hard code of the address that can be accessed by the app before it is deployed.

    cheers


Advertisement