• 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

applet - servlet communication!!!!!

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! friends
Actually i'm working on a Project that is online conferencing project.
I have two end of the communication.
1)the master
2)watchers
what i want is when a master does somethind on his applet (Drawing) that has to be drawn on watcher's applet.
Keep in mind master and watcher are connected through a WebServer.
Please Help!!!
------------------
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

hello ajay,
u can surely reach ur goal easily
use applet servlet communication thru URL class object
in java.net and URLConnection to open the connection then
whatever u draw on the masters site store it in the object and pass the object on the watchers side thru ObjectInputStream and ObjectOutputStream
try it reply again
all the best

------------------
Sagar Surana
optimist
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could do it this way but you would also require to constantly pass the data drawn on the masters applet to the servlet so that it can draw the same on the Users applet. I suggest you to use some time say (50 milliseconds ) to wait before you create the object and send it to the servlet.
please do let me know if this is required.

sagar
 
Ajay Singhal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi! friends
i've got ur idea. and it's working without ant problem.
but the thing is now i want that server should push the objects to all the clients as soon as the action of the master.
i've also applied a concept that i've created a timer inside the applet which will ask for the data after each 1 sec.
now the thing is how to push data from server.
thanks for ur cooperation. and reply if u've an idea of pushing the data.

Ajay Singhal
------------------
 
reply
    Bookmark Topic Watch Topic
  • New Topic