Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

One or Two Jars?

 
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!
I receive my assignment and in the "instructions.html" file have a topic: "Packaging of Submissions" it's indicating only runme.jar file. My Question is: I've to write an Server/Client app in a single JAR? Or runme_client.jar and runme_server.jar. Another question is: If the Data Access is made by SERVER what utility have the app in standalone mode? Does nothing?

Sorry about my english! I'll better
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, partner!

What you have to do is create only one runme.jar file, and this file should contain all classes of the 3 modes. Take a look at this other thread, which I think will also be helpful.
The standalone mode is another way of utilizing the application. If the application is started in standalone mode, then everything runs locally, but the server code cannot be used at all. In the end, depending on the way you start the application, some classes won't be used.
 
Julio Cesar Marques
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok i understand,
but on "standalone" one more question is freaking me out. Suppose you start app in standalone mode what is show in JTable? Nothing... i think because the Server would load data is stopped. Or if i click in new button the new data cannot be persisted because the server would be persist data is stopped. What i can do in this case?
 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, the stand-alone mode is really bypassing networking (not using the server code). The stand-alone and network mode client use the same GUI. Where to get the data source is depending on how you implement the server code.

Simply put, stand-alone get the data soure directly from say Data class. Network mode get it through server code.

 
Julio Cesar Marques
Ranch Hand
Posts: 80
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dude!
If i understand in both of cases de data access is made but in standalone mode the data access is directly in the .db file, but if the server is running i'll get data requesting from him. Is it?

Best Regards!
 
K. Tsang
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup I think you got the gist of it. How you implement your networking (sockets or RMI) should point you to the right direction.
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic