File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes non_networked mode v's networked mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "non_networked mode v Watch "non_networked mode v New topic
Author

non_networked mode v's networked mode

Christy Keane
Ranch Hand

Joined: Mar 29, 2005
Posts: 32
Hi all,

I have a question regarding a portion of the B&S assignment problem statement:

The operating mode is selected using the single command line argument that is permitted. Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all.

In my implemetation I have some classes on the server that perform the business logic. These are insulated from all networking, and are used by both the networked server code and non-networked server code.

Does this violate the above statement, specifically the phrase but must not use the network server code at all?

Does anyone have any views on this?

Thanks.
David Sham
Ranch Hand

Joined: Apr 19, 2005
Posts: 61
In my opinion if you are executing code in standalone mode that resides in your server, you are probably going to violate Sun's requirement. I would play it the safe route and separate the two out between remote and standalone modes. It may be some duplication of code to do so, but would be safer I think. Of course, any decision you make should be explained in your choices document.
Wei-ju Wu
Ranch Hand

Joined: Feb 16, 2005
Posts: 147

In my implemetation I have some classes on the server that perform the business logic. These are insulated from all networking, and are used by both the networked server code and non-networked server code.

Does this violate the above statement, specifically the phrase but must not use the network server code at all?
Thanks.


I think as long as you are not implicitly using any network functionality (e.g. implicitly using a socket to the loopback device) you should be fine. In your user interface you only see the server's interface, whether it is a stub (in networked mode) or the real logic (which it should be in standalone mode)


"The UrlyBird catches the certificate. And he's gonna FlyByNight"<br /> <br />SCJP 1.2/5.0, SCJD, SCBCD, SCWCD, SCEA
Christy Keane
Ranch Hand

Joined: Mar 29, 2005
Posts: 32
Thanks, for your views guys. It still makes sense I think to be able to use these classes containing business logic in both modes. I guess if I just document my decision I should be ok...
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
You should be fine. I agree with Wu, in that the important thing is you do not use any of the network functionality or your server when in stand alone mode.

If you really want to be sure that you are not violating the instructions, why not move the business logic classes into a seperate package, maybe one specifically for business logic? You could still use them with both neworked and non-networked code...

Just a though. I really believe you will be fine either way.


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: non_networked mode v's networked mode