aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S Server GUI or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S Server GUI or not?" Watch "B&S Server GUI or not?" New topic
Author

B&S Server GUI or not?

Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
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.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

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


SCJP, SCJD, SCWCD, OCPJBCD
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
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.


42
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

ThanX for tip

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

http://www.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

Joined: Apr 21, 2006
Posts: 1847
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

Joined: Sep 18, 2003
Posts: 916

ThanX
Al Purvis
Greenhorn

Joined: May 23, 2006
Posts: 22
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.


Al<br />(SCJP,SCJD and working on SCEA)
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: B&S Server GUI or not?