aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Who can hel me? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Who can hel me?" Watch "Who can hel me?" New topic
Author

Who can hel me?

long lingyu
Ranch Hand

Joined: Feb 15, 2004
Posts: 51
I read the SUN spec again before I upload the assignment. There is a question. Look the SUN spec:
Non-Networked Mode
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.
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.
Network Communication Approach
You have a choice regarding the network connection protocol. You must use either serialized objects over a simple socket connection, or RMI. Both options are equally acceptable. Keep in mind that networking must be entirely bypassed in the non-networked mode.
Can I use different GUI for Non-Network and Network mode configuration?
Can I use different method to get the network server and local service?
I don't understand the sentence:
networking must be entirely bypassed in the non-networked mode.
What's the meaning? Should I must use a same method for network and non-network?
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Hi long,

Can I use different GUI for Non-Network and Network mode configuration?

YES.

Can I use different method to get the network server and local service?

YES.

I don't understand the sentence:
networking must be entirely bypassed in the non-networked mode.
What's the meaning? Should I must use a same method for network and non-network?

It means, you cannot connect to the local server using the method that you get remote connection.
For example, if you use RMI, getting the connection by IP and port, you cannot do this using the IP 127.0.0.1 to get local connection.
You cannot invoke any NETWORK funtions to get the local connection.
I implement this part as:
For network mode, I use RMI, passing URL and port to the remote server to get the server stub (connection).
For non-network mode, I simple do this:

Hope this help.
Nick


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)
long lingyu
Ranch Hand

Joined: Feb 15, 2004
Posts: 51
I used two different method. One is to get a local data service. Another is to get a remote connect. Is this ok?
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Hi long,
I think it is ok, since in fact the client uses different methods to get db server reference.
Nick
 
Don't get me started about those stupid light bulbs.
 
subject: Who can hel me?