jQuery in Action, 2nd edition*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes (NX:URLyBird)Question about instructions: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "(NX:URLyBird)Question about instructions:" Watch "(NX:URLyBird)Question about instructions:" New topic
Author

(NX:URLyBird)Question about instructions:

biang lin
Ranch Hand

Joined: Jun 02, 2003
Posts: 91
Hi,
This is from my instructions:
"The program must be able to work in a non-networked mode. In this mode, the database and GUI must run in the same VM and must perform no networking, must not use loopback networking, and must not involve the serialization of any objects when communicating between the GUI and database elements. "
Question:
What is "loopback networking"??
Can not use serialization ?? Something used in RMI must involve serialization in my project, my DataInfo class implements Serializable interface, so is this ok??
And:
"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. "
Question:
I don't understand the bold portion, what is the "networked form" and what is the "network server code"??
[ November 12, 2003: Message edited by: biang lin ]

biang
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982

What is "loopback networking"??

loopback networking is that you issue a network request, but the server is in fact located at the same machine as where you make the request.
e.g. http://127.0.0.1

Cannot use serialization ?? Something used in RMI must involve serialization in my project, my DataInfo class implements Serializable interface, so is this ok??

I think you over looked the Q.
The Q stated that:
The program must be able to work in a non-networked mode.
In this mode....

Only non-networked mode cannot use serialization.
But the networked mode should use serialization.

I don't understand the bold portion, what is the "networked form" and what is the "network server code"??

Now, you need to do 2 things:
1. GUI connects to LOCAL Data Server
2. GUI connects to REMOTE Data Server.
networked form means, even the user choose non-networked mode, the system
behaves like networked mode, but DO NOT involve the remote server code.
networ server code refers to the RMI code (server) when the system is in network mode.


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
biang lin
Ranch Hand

Joined: Jun 02, 2003
Posts: 91
Thank you Nicholas,
You helped me fully understand the instructions.
Richard Jackson
Ranch Hand

Joined: Jun 25, 2003
Posts: 128
Hi,Nicholas
Only non-networked mode cannot use serialization.
But the networked mode should use serialization.

Yes,I agree with you.
But now,I write code for "DiscountRoom" class to describe fields info in each records.

When I use the class at "alone" mode not "server" network mode,writting code like this is still correct?
Regards,Richard


Regards, Richard
Ken Krebs
Ranch Hand

Joined: Nov 27, 2002
Posts: 451
Richard,
Simply making your class Serializable is not a violation. In the non-networked mode, your gui can use the class directly, it does not need to transport it using serialization. My Contractor class was serializable and the gui used it directly from the List of Contractors it got from business tier.
kktec
SCJP, SCWCD, SCJD
"The journey is the reward."


kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: (NX:URLyBird)Question about instructions:
 
Similar Threads
What is Non-Networked Mode?
Questions of understanding the request (URLyBird1.2.2) .
Who can hel me?
NX: What is loopback networking
How many modes are there for the program?