Registering Peers

Once you have created a synchronization peer, you'll need to tell the web application container about its existence. This is accomplished by creating a properties file that contains associations between nextapp.echo.app.Component objects and their corresponding nextapp.echo.webcontainer.ComponentSynchronizationPeer peers. The file is placed in a specific location:

/META-INF/nextapp/echo/SynchronizePeerBindings.properties

The following SynchronizePeerBindings.properties file will associate our example SpinButton component with its SpinButtonPeer synchronization peer:

example.SpinButton        example.SpinButtonPeer

Class names must be fully-qualified (i.e., include the package name). Multiple peer bindings may be specified in a single SynchronizePeerBindings.properties file, each on its own line.