Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 117995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:25:28+00:00 2026-05-11T03:25:28+00:00

I want to distribute a webstart application which uses RMI. I want to avoid

  • 0

I want to distribute a webstart application which uses RMI.

I want to avoid to ask the user the address of the RMI server, because the website that distributes the application is also the RMI server.

Furthermore, I don’t know the address of the server at build time, therefore the address must be added with ad hoc configuration to the JNLP, or the address must be provided at execution time. This is the preferred way: is it possible to do so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:25:29+00:00Added an answer on May 11, 2026 at 3:25 am

    I haven’t used Java RMI exactly (I’ve only used Java Web Start with Hessian binary protocol for doing something like RMI), but at least the part of passing the server address to the Web Start client app should be easy. When you generate the JNLP file in your application, add the address as a property:

    <jnlp>   [...]   <resources>     [...]     <property name='serverAddress' value='...' />   </resources> </jnlp> 

    Then, in client code read that property:

    String serverAddress = System.getProperty('serverAddress'); 

    I assume here the website that distributes the application knows its own address 🙂

    Edit (with the additional limitation of not knowing address at build time): Hmm, Is the website distributing the app a dynamic or static one?

    1. dynamic: either generate whole JNLP dynamically (with a JSP page or dom4j or whatever), or read the ‘template’ JNLP XML file and replace the real server address in place
    2. static: I guess the person who deploys the site has to manually configure the right address in the JNLP file?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to distribute a small application that offers a web interface intended for
I have an application that I want to distribute a free and paid version
I have a product database which I want to distribute to an iphone user
I want to distribute my Perl application which have one CPAN dependency. Can I
I want to distribute a Java desktop application for Windows. Which is the best
I have a MFC application that I want to distribute via USB flash drives.
I have a list of email address which I want to distribute evenly by
Right now I've finished an application that I want to distribute on Android Market.
Mainly I ask this because I don't want to distribute both versions, and if
I want to distribute my application to .ipa file which can be added by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.