aspose file tools*
The moose likes Jobs Discussion and the fly likes Swing  application or web-application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "Swing  application or web-application" Watch "Swing  application or web-application" New topic
Author

Swing application or web-application

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Recently, i attended an interview in a small company. They asked me a very confusing Question.
They said that they have to make a desktop application, for which SWING(with Jdbc/Hibernate) suited the most. But, what if they create that application as a web-application(Servlet,jsp and Hibernate), which will be used as Desktop application.

I replied, that every-time , before working they will have to switch on the local server every time. And there will also be a performance issue.

They asked me to elaborate some more problems,and benefits, if any. And i was unable to give much reasons.

Give your suggestions.

Thanks


kunal
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61239
    
  66

Moved to the Jobs Discussion forum.

Kunal Lakhani wrote:They asked me to elaborate some more problems,and benefits, if any. And i was unable to give much reasons.

Then why did you say those things in the first place? Nothing makes you look more foolish in an interview than spouting opinions such as "And there will also be a performance issue" is you can't back it up.

Give your suggestions.

My suggestion is not to say things in an interview that you do not know to be true, and can't back up with realistic reasons.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Bear Bibeault. Doesn't it looks foolish to create a WEB application using Servlet jsp to work as a Desktop application?

Please provide some problems one can face, if one does so. And provide some realistic reasons.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61239
    
  66

Kunal Lakhani wrote:Doesn't it looks foolish to create a WEB application using Servlet jsp to work as a Desktop application?


You just did it again. You essentially stated "It looks foolish to create a web application to 'work as a Desktop application'"

You made an opinion statement as if it is fact, but now you need to back that up with realistic reasons. Can you?

I'm not going to justify why I think that is false, you are going to have to justify why you think that's true.

You also need to define what is meant by 'work as a Desktop application'. That could mean many things.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30550
    
152

It's possible there is a language thing here. Kunal asked if it was foolish. Bear took it as a statement.

I also wonder what you mean by desktop application. Is it Swing? A browser? A web slice?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your replies Jeanne Boyarsky, Bear Bibeault

You made an opinion statement as if it is fact, but now you need to back that up with realistic reasons. Can you?


No Bear Bibeault, i didn't gave my opinion, you took it as a statement. I was asking whether its a foolish thing. I am sorry, if my language was wrong.

Desktop application, my fault . I mean to say , 'a swing application'.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61239
    
  66

OK, so my opinion is that no, it's not a foolish thing. I do it all the time (write an application only for my own use, on a single system, as a web application).
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Bear Bibeault. That means you just need to power on the local servers before working. Is that all you have to do? No other problems?

I messed it up in the interview

Now, the best way to learn is to create a web-application, which will work on behalf of Swing application(working in a single system).
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10403
    
    8

Kunal Lakhani wrote: But, what if they create that application as a web-application(Servlet,jsp and Hibernate), which will be used as Desktop application.

I fail to understand the question which was asked. Were they asking you to do a comparative analysis or something?

One can have a swing application, rendered over the web (if that can be treated as a web application) by using JNLP. Of course the swing application needs to be structured and designed properly, especially the data model, transport layer and the hibernate layer etc.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Maneesh Godbole, they asked what if they create a web application(the application will work on just single pc just as swing(non-web) application) instead of swing application.

I think i am able to make you understand
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
they asked what if they create a web application(the application will work on just single pc just as swing(non-web) application) instead of swing application.


The "what if" question above is not clear or complete. The only reasonable answer is, "If they create a web application instead of a Swing-based application, then they will have a web application instead of a Swing-based application."

To run a web-based application on a single PC, you would need to have a web server running on that same PC.
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Jimmy Clark

Yes, i would need to have a web server running on that same PC. That's ok. But, any other thing to be noted
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Yes, i would need to have a web server running on that same PC. That's ok. But, any other thing to be noted


There are thousands of "things" that can be noted. A "question" typically indicates more information to help the recipient formulate a reasonable answer. The question is poorly formed and your confusion is to be expected. Your response was bad as well for different reasons. A poor question will usually generate a poor response.
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Jimmy Clark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing application or web-application