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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "execution arguments" Watch "execution arguments" New topic
Author

execution arguments

Nagu Rathina
Ranch Hand

Joined: Jun 17, 2002
Posts: 31
friends,
1. when starting server argument should be mode.(local or remote).
2. when starting client , path of db should be given in local mode and host & port in remote mode.
am I right?
Robin Underwood
Ranch Hand

Joined: May 01, 2002
Posts: 117
Server does not need to know about local or remote mode. Server only needs to be started when running in remote mode.
The client needs to choose whether it runs in local or remote mode. When running in remote mode, client will need to know the host and port of the server.
Nagu Rathina
Ranch Hand

Joined: Jun 17, 2002
Posts: 31
yes, I understand.
Nagu Rathina
Ranch Hand

Joined: Jun 17, 2002
Posts: 31
In my application, server binds Connection object to registry running in Registry.REGISTRY_PORT. so it is sufficient for client to provide host of server.
Am I violating requirement?
Robin Underwood
Ranch Hand

Joined: May 01, 2002
Posts: 117
I think it's fine as long as the client knows it always uses the default port 1099. I don't think Sun requires the assignment to run on other ports, but I did write my project to run on any valid port.
Nagu Rathina
Ranch Hand

Joined: Jun 17, 2002
Posts: 31
In that case, Robin, how will u pass port number from client to server? (if client chooses some port..)
Robin Underwood
Ranch Hand

Joined: May 01, 2002
Posts: 117
You don't pass the port number from client to server.
First the server is started on a particular port number. Then the client needs to select that same port number either through a command line argument or through a GUI. Both the host and port would be included in the client's JNDI lookup of the remote object.
Arun J Kumar
Greenhorn

Joined: Aug 01, 2002
Posts: 3
In client/server case, where would you specify the db file name. While starting the server, or the client?
If you specify while starting the server, then only thing you would need to specify on the client is the host and port of the server.
However, if you allow the flexibility to choose the db file name from the client, then the server needs to be capable of handling multiple db files concurrently.
To me, it is not clear from reading the specs, if SUN wants us to do this.
Any one?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: execution arguments
 
Similar Threads
NX:About modify the location of the database
lock an unlock
Indication that a local database is to be used ?
lock on local client
command line arguments