applet - servlet communication!!!!!

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!!! ------------------

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

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

posted 17 years ago

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.