public static synchronized void registerProvider (String providerID) throws SyncFactoryException

Adds the given synchronization provider to the factory register. Guidelines are provided in the SyncProvider specification for the required naming conventions for SyncProvider implementations.

Synchronization providers bound to a JNDI context can be registered by binding a SyncProvider instance to a JNDI namespace.

 
 SyncProvider p = new MySyncProvider();
 InitialContext ic = new InitialContext();
 ic.bind ("jdbc/rowset/MySyncProvider", p);
  
Furthermore, an initial JNDI context should be set with the SyncFactory using the setJNDIContext method. The SyncFactory leverages this context to search for available SyncProvider objects bound to the JNDI context and its child nodes.

Parameters:
providerID    A String object with the unique ID of the synchronization provider being registered

Exceptions:
SyncFactoryException    if an attempt is made to supply an empty or null provider name

See also:
setJNDIContext