*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Network Server Code...please clarify Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Network Server Code...please clarify" Watch "Network Server Code...please clarify" New topic
Author

Network Server Code...please clarify

Ken Kirin
Greenhorn

Joined: Dec 02, 2004
Posts: 26
Hi All
I am a new rancher and I have seen a lot of helpful suggestions here. I am currently collecting ambiguous informations for my SCJD assignment before coding.
With a lot of "must" words, They raises me a lot of questions. But one of matters is about the Data class that must implement DBAccess Interface of the server(They are all explained in Server topic in the assignment). As I read the assignment,in non-networked mode,it said "this mode must use the database and GUI from the networked form, but must not use the network server code at all". Then should I not use both DBAccess Interface and Data class for the stand alone mode implementation because they would be considered the network server code? Or I might misinterpret the words " network server code". Any suggestion would be appreciative. Thank you.
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Ken Kirin:
Hi All
I am a new rancher and I have seen a lot of helpful suggestions here. I am currently collecting ambiguous informations for my SCJD assignment before coding.
With a lot of "must" words, They raises me a lot of questions. But one of matters is about the Data class that must implement DBAccess Interface of the server(They are all explained in Server topic in the assignment). As I read the assignment,in non-networked mode,it said "this mode must use the database and GUI from the networked form, but must not use the network server code at all". Then should I not use both DBAccess Interface and Data class for the stand alone mode implementation because they would be considered the network server code? Or I might misinterpret the words " network server code". Any suggestion would be appreciative. Thank you.


There are various approaches to this, what I did was to make Data implement the DBAccess interface as described in the instructions and then built a DataProxy class using the Proxy pattern that also implements DBAccess. The DataProxy class uses RMI to access the Data class over the network. The business logic then uses either a DataProxy if its networked or a Data object if its local. This choice is based on the startup parms. See my recent posts to this forum, especially in reply 9 of Local Adapter Issue for more details.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Network Server Code...please clarify
 
Similar Threads
URLyBird 1.2.1 - MUST not use the network server code
Could somebody suggest me about locking in standalone mode,please?
About URLyBird 1.2.3 Assignment Question
Non-Networked Mode
NX: Non-Networked mode