• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: UrlyBird. data class shared by client?

 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need help in interpreting the following line.

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.

I am curious about the meaning of the word database here. I believe it is
is the physical database and not the data access class. Since, URLyBird requires 2 jar files one for client and one for server, this makes sense.
In our client package, we need a copy of the Data class that is in the server. This will help in running the two jar's in separate machines.
In the "alone" mode we need not run the server jar.
Thanks,
SB
[ August 06, 2003: Message edited by: S Bala ]
 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Max, Jim, Phil, ....
Any Takers on this.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[SB]: I am curious about the meaning of the word database here. I believe it is is the physical database and not the data access class.
Personally I interpret it to include the data access class too. A db file is not a database unless you have some sort of program that knows how to access it. My design has a single Data class which is used in local or server mode - the server mode just uses additional networking classes to adapt the Data class to be shared across a network. But the code Data class is not part of the networking code; it's the same class used in local mode. This Data class is part of the "database" as far as I'm concerned.
[SB]: Since, URLyBird requires 2 jar files one for client and one for server, this makes sense.
In our client package, we need a copy of the Data class that is in the server. This will help in running the two jar's in separate machines.
In the "alone" mode we need not run the server jar.

My requirements only have 1 jar file, so this is different for me. But I'm perplexed by this:
"In our client package, we need a copy of the Data class that is in the server."
Is there more than one Data class? Do they have different package names or something?
I don't know how the 2 jar files are described, so I can't really comment further. Cheers...
Thanks,
SB
 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim,
I came to the conclusion because of the following clause in my assignment:

When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]

I think this means that the client and server should be packaged as jar files.
I find, understanding the problem to be more diffucult that actually solving it.
SB
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions contain a similar line - by itself, it doesn't tell us how many different jar files there may be. It's possible to have just one jar file with all the code, and the [mode] argument determines which classes and methods get executed.
Look under "Packaging of Submissions". My assignment (2.1.1) includes the line
"The executable JAR containing the programs. This must be called runme.jar."
This means I can't possibly have a server.jar and client.jar; there's only runme.jar. However your instructions may be different.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi S,
In my URLyBird assignment I got the same instruction :
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]

But there is onyly one executable jar file as stated here :

The executable JAR containing the programs. This must be called runme.jar.

Best,
Phil.
 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim and Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic