• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2se 2 tier application  RSS feed

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a java based interview today.
in there I explain one of my project that is 2 tier j2se application(client pc for view and business logic and db server). So I also said main problem in here is if we want to update jar file we have to update in all the client pc's.I also said as a solution for this we can move on to web based application.
So then interviewer asked from me ....
Is there other way to my problem with out move to web solution. I dnt know the answer for this.
Soo can anyone explain solution for this problem without using web based app?
 
Saloon Keeper
Posts: 7994
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why didn't you ask the interviewer?
 
Dilshan De Silva
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:Why didn't you ask the interviewer?


It isnt polite right?
 
Stephan van Hulst
Saloon Keeper
Posts: 7994
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would argue that it shows interest in the field you are in. I don't know how the culture is where you live, in that regard, but where I live I would ask the interviewer for their thoughts, if I didn't know the answer to one of their questions.

Remember that you are on equal footing with the interviewer. You are not only asking them if you can work there, they are also asking you to work for them. They aren't doing you a favor.
 
Dilshan De Silva
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:I would argue that it shows interest in the field you are in. I don't know how the culture is where you live, in that regard, but where I live I would ask the interviewer for their thoughts, if I didn't know the answer to one of their questions.

Remember that you are on equal footing with the interviewer. You are not only asking them if you can work there, they are also asking you to work for them. They aren't doing you a favor.



Got your point.
But is there no way doing that, I mean without web?
 
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dilshan De Silva wrote:But is there no way doing that, I mean without web?

Sure. Separate your client logic from whatever else your app needs to do (db, state managaement, whatever). Changing jars all the time suggests that you have a 'desktop app', like Word, so it stands to reason that whenever you have a change, you'll have to change all the 'desktops'.

Winston
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Making the app a JavaWebStart app would solve the update problem. It requires a web server to install the app initially, but I wouldn't call it a web solution.

The other solution would be a self-updating app. It could check on startup (or upon user request) with a server whether a new version is available, and if there is one, download the necessary files, and start it. Most current desktop apps (Java and non-Java) seem to have that functionality.
 
Dilshan De Silva
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
Sure. Separate your client logic from whatever else your app needs to do (db, state managaement, whatever). Changing jars all the time suggests that you have a 'desktop app', like Word, so it stands to reason that whenever you have a change, you'll have to change all the 'desktops'.

Winston


So if I separate logic from view where the logic will run,guess it would be app server?..If so how do I connect view with logic( Guess logic is still run in client pc).
I thought of a solution like same jar access by many user,but if I do that static variables will cause problems right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!