Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

non_networked mode v's networked mode

 
Christy Keane
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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)
 
Christy Keane
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic