File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(NX:URLyBird)Question about instructions:

 
biang lin
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
biang lin
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Nicholas,
You helped me fully understand the instructions.
 
Richard Jackson
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ken Krebs
Ranch Hand
Posts: 451
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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."
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic