• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

executing a java program from web client

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a web application(in tomcat), and I would like to open two clients (client1, client2) on different machines (machine1, machine2). I would like to execute java program on machine2 from client on machine1(client1).
Is it possible, If so please suggest me one.

Thanku
R Lolabhattu
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do anything if you try hard enough.

But this is really a bad idea, unless I'm not understanding what you want.

Normally, you have a server running Tomcat (it can be a normal PC, but you need to think of it as a server) and one or more clients.

If I understand you, you want to have one server and two clients, and when Client1 does something, you want to "execute a program' on Client2.

This sounds a lot like a virus or malware. It is bad security. Nothing you do on Client 1 should change what is executing on Client 2. Ever.

You could use AJAX to have Client 1 set a state on the server that is visible to Client2, and triggers some AJAX response. This could appear to work the way you describe. But in reality, the clients were running the AJAX code before you started, and you just returned data.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fog Creek CoPilot does exactly this. Both client machines log in to a server and one can take over the other. It was written by a couple interns as a summer project (!) Reading about it may give you some ideas.
 
R lolabhattu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you, I wanted same like CoPilot, my application did not require this many features, I would just like to execute a java program. I would read about this now. If anybody knows about it please let me know. Thank you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic