Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 Using the Example Code : ASPaint (Java and .NET Only)

ASPaint (Java and .NET Only)
ASPaint is an implementation of a shared whiteboard. This example is provided only for Java and .NET.
Overview
ASPaint showcases various features of ActiveSpaces, but is not designed to be used as a template for coding best practices.
To get a full understanding of ASPaint, launch more than one instance of the program so that you can see the eventing aspect of ActiveSpaces in action.
You can also check the seeded checkbox and see the distribution algorithm working in a visual manner. Also try adding or removing seeders from the space to see redistribution at work. You can also try filter ss and remote space invocation.
Starting ASPaint
Java Invocation
In Java, you can start ASPaint in two ways:
1.
java com.tibco.paint.AsPaintApp
2.
java -jar ASPaint.jar
Starting ASPaint using the -jar option requires that you start ASPaint from the AS_HOME/examples/java directory, because the manifest in ASPaint.jar looks for lib/as-common.jar in the current directory.
.NET Invocation
AS_HOME\examples\dotnet\ASPaint.exe
Using ASPaint
When you invoke ASPaint, you are prompted to enter the following metaspace connection attributes:
Enter these in the dialog window that appears.
ASPaint displays a window that allows you to draw into a "whiteboard." The interface is similar to the MS Paint interface.
ASPaint creates a space named paint. The ASPaint example requires that two seeders be connected to the paint space before you can use the tools to draw or enter text on the whiteboard. Therefore, you should start a second instance of ASPaint.
When both instances of ASPaint are running, what you draw on the whiteboard of one ASPaint instance is automatically reflected on the whiteboard of the second ASPaint instance.
If you check the Seeded check box, the command window indicates when a member joins or leaves the metaspace.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved