• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Who can hel me?

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
long lingyu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi long,
I think it is ok, since in fact the client uses different methods to get db server reference.
Nick
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic