• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

App Config

 
Julio Cesar Marques
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!

I have one question about Setup Environment. How i set server IP in case client/server mode or path to .db file in standalone case? Remember what say in instructions.html file: "You must not require manual editing of any files by the examiners".

Sorry about my english again!
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fala ai Julio!

Partner, please take a look here. I think it might be helpful!
 
Julio Cesar Marques
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Beleza!
If i understood, i'll splash screens asking for path, IP and port. It sounds good, but a question about automatic failure has freaking me out a litle bit. About suncert.properties what configuration wich have to exist in this file?

Thanks!

PS. "wich have to exist" this is correct?
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Which configuration has to exist in this file"

This is something that you can decide. You can store all parameters you find necessary. In my case, here's the deal: when the application starts in standalone mode, I ask for the database location; when the application starts in server mode, I ask for the database location and the port number in which the server will run; and when the application starts in client mode, I just ask for the server IP address. So, for instance, the first time the application starts in standalone mode, the database location field in the dialog is empty, then the user provides the database location and this value is stored in the suncertify.properties file. The next time the application is started in standalone mode, the database location field in the dialog is filled with the value stored in the suncertify.properties file.
 
Julio Cesar Marques
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure! Now I can define the business logic more clearly!

Many Thanks! (for while)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic