Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

whiteboard - networking

Thread view: 
solomon13000@gmail.com - 03 Oct 2007 18:35 GMT
I came across a code that shows how to implement a java whiteboard.
The code can be found at:

http://www.cs.unc.edu/Courses/comp117/members/lim/a3/whiteboardappletsoucecode.html

I am trying to figure out how to implement it in a network
environment.

The idea I have is to grab what is drawn on the panel, convert it into
an object, and send it to

other clients using a socket connection. Now for this case how do I
grab what is drawn on the

panel and turn it into an object which can be send using a socket to
the other clients so that

they can see the changes on the whiteboard.

Your help is kindly appreciated.

Regards

Eugene
Patrick May - 04 Oct 2007 03:00 GMT
> I came across a code that shows how to implement a java whiteboard.
> The code can be found at:
[quoted text clipped - 10 lines]
> the other clients so that they can see the changes on the
> whiteboard.

    This is a classic master-worker pattern using JavaSpaces.  See
http://www.jini.org for examples.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc.  | Large scale, mission-critical, distributed OO
                      | systems design and implementation.
         pjm@spe.com  | (C++, Java, Common Lisp, Jini, middleware, SOA)
Roedy Green - 04 Oct 2007 03:11 GMT
>I came across a code that shows how to implement a java whiteboard.
>The code can be found at:
[quoted text clipped - 3 lines]
>I am trying to figure out how to implement it in a network
>environment.

What you might do is use RMI.  Then you can do remote procedure calls.

See http://mindprod.com/jgloss/rmi.html

Other than that, you need to invent a protocol, messages to describe
all the things you want you whiteboard to do and all the possible
changes the central whiteboard sends back to the remotes to make it
stay in sync.

Ways to implements:

1. all commands get sent to all whiteboards for independent rendering.

2. use something like PCAnywhere to display the rendered central
resulst.

3. study how other conference software works.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Chris - 04 Oct 2007 03:53 GMT
> I came across a code that shows how to implement a java whiteboard.
> The code can be found at:
[quoted text clipped - 14 lines]
>
> they can see the changes on the whiteboard.

I once saw a demo of this using Terracotta. http://www.terracotta.org/

They may have the demo lying around someplace, maybe as sample code.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.