aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird 1.2.2 modes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird 1.2.2 modes" Watch "URLyBird 1.2.2 modes" New topic
Author

URLyBird 1.2.2 modes

Bj�rn Tikkanen
Greenhorn

Joined: May 29, 2007
Posts: 8
My assignment says "The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run."

I interpret this as
server - start RMI server
alone - start Client GUI in local mode
left out - start RMI server and Client GUI in network mode

Or, should you in alone mode be able to say if to connect to RMI server or local file?


--------------------<br /> <br />SCJP 5<br />SCJD<br /><a href="http://www.javanews.se" target="_blank" rel="nofollow">http://www.javanews.se</a><br /><a href="http://blog.webbprogrammering.se" target="_blank" rel="nofollow">http://blog.webbprogrammering.se</a>
Gabriel Vargas
Ranch Hand

Joined: May 16, 2007
Posts: 145
Hi Bj�rn


I interpret this as
server - start RMI server
alone - start Client GUI in local mode
left out - start RMI server and Client GUI in network mode


Mmmm, i have a different interpretation (i take my interpretation of Andrew's book ):

server - start RMI server (asking for datafile path, and port number)
letf out - Start network client (asking for ip server and port number)
alone - start server in local mode (asking for datafile path) and later client in local mode (no RMI)

Look this forum, it brings you more ideas about parameters:

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

I hope it helps you.


Gabriel Vargas
SCJP, SCJD, now studying for SCWCD and working to be a better person
Bj�rn Tikkanen
Greenhorn

Joined: May 29, 2007
Posts: 8
Originally posted by Juan Gabriel Vargas Bola�os:


server - start RMI server (asking for datafile path, and port number)
letf out - Start network client (asking for ip server and port number)
alone - start server in local mode (asking for datafile path) and later client in local mode (no RMI)

Look this forum, it brings you more ideas about parameters:


Ok, I think this is what I meant as well with one exception. For the alone part, is there really a server started in this mode? Sure, there should be a screen for settings input (database location) but is there a must for a "server" to be started? If the definition of server is the database part I can agree, but otherwise I think I'm off track here.
Gabriel Vargas
Ranch Hand

Joined: May 16, 2007
Posts: 145
I mean if your server is designed to be executed standalone or remote you can initialize that with different parameters for each mode bu with the same basic functionality (decouple functionality from communication). Then if your mode is alone initialize client standalone.
Beny Na
Ranch Hand

Joined: May 26, 2004
Posts: 159
"alone - start server in local mode (asking for datafile path) and later client in local mode (no RMI)"
-------------------------
what does it mean, i don't think we have to start the server for alone mode
that statement above confuse me, i don't see it on my assignment specs, maybe mine is different with yours

Thank you
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Beny Na:
"alone - start server in local mode (asking for datafile path) and later client in local mode (no RMI)"
-------------------------
what does it mean, i don't think we have to start the server for alone mode
that statement above confuse me, i don't see it on my assignment specs, maybe mine is different with yours

Thank you


Alone: Gui part + DB access part;
Server: Remote Server part + DB access part;
None: Gui part;

Exactly where your server part ends and the data access part begins heavily depends on your implementation.


SCJP<br />SCJD
Bj�rn Tikkanen
Greenhorn

Joined: May 29, 2007
Posts: 8
Originally posted by Mark Smyth:


Alone: Gui part + DB access part;
Server: Remote Server part + DB access part;
None: Gui part;

Exactly where your server part ends and the data access part begins heavily depends on your implementation.


Hi Mark

This is also what I have implemented after a few test with different versions. I got it quite wrong in the beginning, but to be able to start both GUI and RMI Server part independent and on differnt machines this aproach make sense.

Thank you all for all input!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: URLyBird 1.2.2 modes
 
Similar Threads
commandline argument
(NX:URLyBird)A question about properties files:
Executable Jar File
standalone vs. net client clarification
The mode flag