Sun GlassFish Mobility Platform 1.1 Developer's Guide for Enterprise Connectors

ProcedureTo Configure the Enterprise Connector on Sun GlassFish Mobility Platform

Add and configure the JAX-RS Enterprise Connector as a local Enterprise Connector using the Sun GlassFish Mobility Platform Administration Console.

You can also configure the Enterprise Connector as a remote Enterprise Connector if you deploy it on a remote system. For instructions, see To Create and Activate a New Enterprise Connector in Sun GlassFish Mobility Platform 1.1 Administration Guide and To Configure a Remote Enterprise Connector in Sun GlassFish Mobility Platform 1.1 Administration Guide.

  1. Log in to the Sun GlassFish Mobility Platform Administration Console.

    1. In a browser, type the Administration Console URL (usually http://localhost:8080/sync/admin).

    2. Type the username and password (the default values are admin and syncpass).

    3. Click the Login button.

  2. Click the Connectors tab.

  3. In the Name field of the Local Enterprise Connectors panel, type the name of the Enterprise Connector (for example, MusicDbRS).

  4. Click Add.

    The new Enterprise Connector appears in the list of repositories. The Active checkbox is selected by default, indicating that the Enterprise Connector has been activated.

    A new sub-tab for the Enterprise Connector appears. You can now configure the new Enterprise Connector.

  5. Click the sub-tab for the connector.

  6. In the Local Enterprise Connector Settings panel, type the JNDI name of the connector resource you created in To Create a Connector Resource for the Enterprise Connector (for example, mep/musicdb-ws) and click Save.

  7. In the Local Enterprise Connector Properties panel, specify a value for the uri property.

    For the MusicDB connector, this value is http://localhost:8080/musicdb-ws/resources/albums.

  8. (Optional) If you are configuring the MusicDB Enterprise Connector, in the same panel, specify a value of true for the useTimestamps property.

    If you do not set the property, or if you set it to false, the MusicDB connector will use digests instead of timestamps to determine whether a business object has been updated since the last synchronization.

  9. Click Save in the Local Enterprise Connector Properties panel.

Next Steps

You can now perform synchronizations using the Enterprise Connector.