+

Search Tips   |   Advanced Search

Create a MobileFirst adapter

Follow these instructions to create a MobileFirst project and configure a new MobileFirst adapter.

On initial creation of a new adapter, MobileFirst automatically generates the default skeleton for the adapter with all the required properties, based on the type (HTTP, SQL, or JMS). You need only to modify the default skeleton to configure an adapter.

  1. Optional: Perform this step only if you do not already have an existing MobileFirst project. If we set up MobileFirst shortcuts, right-click anywhere within the Eclipse Project Explorer view and click New > MobileFirst Project. Otherwise, click New > Other, then select MobileFirst > MobileFirst Project from the list of wizards and click Next.

    Figure 1. Creating a MobileFirst project from the wizard.

  2. In the New MobileFirst Project wizard, specify a name for the project and click Finish.

  3. If we set up MobileFirst shortcuts, right-click the MobileFirst Project to which to add the adapter, and select New > Adapter. Otherwise, select New > Other, then select MobileFirst > MobileFirst Adapter from the list of wizards and click Next.

    Figure 2. Configuring a new MobileFirst adapter.

    The New Adapter wizard opens.

  4. Select the required adapter type from the Adapter type list and enter a name for the adapter in the Adapter name field.

    Figure 3. Selecting an adapter type.

  5. Optional:

    • Select Create procedures for offline JSONStore to include four place holder procedures in the adapter template: a procedure that gets data, a procedure that adds data, a procedure that replaces data, and a procedure that removes data. These procedures are designed to help develop a JSONStore-enabled application that communicates with a back end.

    • Select Create procedures for USSD enablement to generate sample procedures for USSD in the adapter js file.

  6. Click Finish.


Parent topic: Develop the server side of a MobileFirst application