JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
July 12, 2020, 04:52:40 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Location of jppf-client.properties file?  (Read 4080 times)

bd

  • Guest
Location of jppf-client.properties file?
« on: March 04, 2009, 07:30:31 AM »

How does a client app find a ppf-client.properties file?  I.e. where should I put this file so that it is used by my app?  I gather that by default an instance of JPPFClient accesses a driver via default ports on localhost.  Eventually I'll need to have my apps access remote jppf drivers.  

thanks
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site
Location of jppf-client.properties file?
« Reply #1 on: March 04, 2009, 12:54:11 PM »

Hello,

The lookup of the configuration file is done as follows:
[list=1]
  • JPPF looks for the config file path in the system property "jppf.config"
  • if "jppf.config" is not defined, a default value of "jppf.properties" is used
  • the config file is searched in the file system; if the config file path is a relative path, the search is based on the current user directory, such as returned by System.getProperty("user.dir")
  • if the file is not found in the file system, it is looked up in the application's class path
  • finally, if the file is not found in the class path, the configuration is left empty and default values will be used, as described in the  Configuring section of the documentation.
    [/list:o]I hope this helps,
    -Laurent
Logged

bd

  • Guest
Location of jppf-client.properties file?
« Reply #2 on: March 04, 2009, 04:48:59 PM »

thanks, that's exactly what I needed to know.
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads