Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how many jars.. and some design..

 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys..
how many jars can we upload to the galton site.
as far as i know that only one jar can be uploaded.
if only one jar can be uploaded then i have some problems.
as per the design that i have come up. the data class will be required on both cleint side ( for local mode acess) and on the server side ( for network access).
so how do you people manage that. do you make two copies of data class or you have made your code to point to the same instance of the data class that we have in your db folder.
thanking you in advance
siddharth
 
Todd Harney
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You create you application jars (like client.jar and server.jar), but you package those all up into a single jar file for submission. I believe the requirements page details that somewhere?!
Thanks,
Todd
 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Todd Harney:
You create you application jars (like client.jar and server.jar), but you package those all up into a single jar file for submission. I believe the requirements page details that somewhere?!
Thanks,
Todd

in that case.. if i make two jar files. the data class that is requierd for accessing the database will be required in both the jars.
how do you plan to do that..
do you physically copy and paste the file on both the places..
 
Todd Harney
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is correct that the Data class will need to be in both jars (client and server), but I don't think is 'copy and paste' like you said. There is still only one Data class, you just add it to both jars when you make the JAR file(s).
Thanks,
Todd
 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Todd Harney:
that is correct that the Data class will need to be in both jars (client and server), but I don't think is 'copy and paste' like you said. There is still only one Data class, you just add it to both jars when you make the JAR file(s).
Thanks,
Todd

hi Todd, I got it. That you have one data class that you wil be adding to client.jar and server .jar. these tow jars will inturn be added into one jar file say submission.jar
i hope all that i said above is right..
and just to add to that point above.
tell me if i'am right in what i write below.
if i extract client.jar and server .jar into two different folders then i will get two copies of data class.

thanks
sid
 
Todd Harney
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you will get two copies of the EXACT same data class...but server.jar and client.jar shouldn't be extracted. Only the main submission jar file should be extracted and then the server.jar and client.jar files will executed by java -jar server.jar for example.
Hope that helps,
Todd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic