Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet calls swing application

 
Tracey Currier
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can my servlet call an executable jar file which
has swing components, etc, if the jar file is stored on the same server? :roll:
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think it can.
but what will it help u?
it gets executed on the server side.
 
Tracey Currier
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the application to execute in the browser or from the browser. I didn't really want to use
an applet, but I have a fairly complex GUI application that I want accessible from the web.
Do I use RMI? I don't think I can use beans but
I can use J2EE and servlets.
Thanks for your response.
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u must realize that it is very hard to convert your application so a user can use it over the web.
first u can d/l the entire application to the client and let him execute it there.
second if u use rmi or servlets to invoke methods on the application u must know that all the gui wont be shown to the client. u need to transfer the gui to the client side which i think is impossible (but again there may be ways to do it, and maybe someone with more knowledge on the subject may instruct u).
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tracy, you must use an applet. That is your only option if you want the Java code to execute in the browser itself.
Kyle
 
Tracey Currier
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it will mean some rewriting, but at
least I can use all my graphics. I read the article recommended by Roy Ben Ami the other day,
it looks pretty straightforward.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic