• 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

B&S Server GUI or not?

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Until very recently, I never considered making the server part of the assignment run a GUI. Reason being that I would expect (well in the real world) the server to be deployed on a server machine in a rack. Hence there is usually no windowing capabilities to display a GUI (or run the application at all).

Of course it's all about assumptions and stating that in your submission, but I am curious as to what everyone else ended up doing (or are planning to do).

I was just reading the thread about configuration settings and allowing the user to specify settings at runtime through a GUI. Makes obvious sense for the client app, but I wasn't so sure about the server part.

Hmmm ... actually now that I think about it, the part of the spec that says something to the effect of: "user must not need to edit configuration files directly" makes it clearer now.

Cheers, Jared.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jared

Hi, I do the URLyBird and I'd have the same problem but in my specs I have something like :


All configuration must be done via a GUI ....


So I presume that the server runs on a machine with graphic posibilities.

Apopos "no windowing capabilities " how you check if the system support graphic features ?

Regards,
Mihai
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a system call for that.


That's what I use and it works well. If I can do so I display a Swing dialog and let the user enter details there, then press a button to start the server.
If I can't display the dialog I just start the server with the last saved details or the defaults (if no config file exists).

I've of course recorded that well. The headless mode is purely an extra, it's not required.
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ThanX for tip

How you configure your server ?
I describe my stategy on :

https://coderanch.com/t/188274/java-developer-SCJD/certification/suncertify-properties

What you think ?

Regards,
Mihai
[ May 31, 2006: Message edited by: Mihai Radulescu ]
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you describe in your last message there is similar to what I do.
try to read properties.
if found, display those as defaults.
if not found, display hardcoded defaults.
when user selects to connect/start, try to do so and if successful, save the entered values.
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ThanX
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jared

I have provided a GUI with my database. My thinking on this was that you must configure the server via the GUI. It seems to me you need a GUI to do this.

My GUI does configuration, terminates the database server and displays each action performed in the database.
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Originally posted by Al Purvis:

My GUI does configuration, terminates the database server and displays each action performed in the database.



Yep, I've pretty much decided to do the same.

Cheers, Jared.
 
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic