Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using central administration of remote databases

 

Lesson 10: Deploying a remote task

In this lesson, you deploy the remote task so that it can be assigned to an Agent.

Prérequis

This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a consolidated database.

This lesson assumes you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using central administration of remote databases.

 Task
  1. In the Folders view of Sybase Central under MobiLink 16, expand Central Admin Tutorial, Remote Tasks and then right-click the Hello World task and click Deploy.

    The Deploy Remote Task Wizard is displayed.

  2. Accept the defaults on the Task Name And Destination page and click Next.

    This gives the deployed task the same name as the design-time task, which is what you would normally want to do unless you are deploying the same design-time task for a second time. In that case, you would have to change the name for the deployed task.

  3. The Recipients page lets you assign the deployed task to existing Agents. You can also do this later as a separate step. From the Recipients dropdown, select Specific agents. In the Agent list, select AID_JOHN and click Next.

  4. On the Delivery Options page, check The next time the agent synchronizes and click Next.

  5. On the Reporting Results And Status page, check Send results and status immediately for both questions. This ensures that you receive timely notification when your task executes. For routine tasks and repetitive tasks you may choose to receive feedback less quickly (especially on success), as this reduces the number of synchronizations of the agent database and the load on the MobiLink server.

  6. Click Finish.

    The next time the Agent AID_JOHN synchronizes its agent database, it receives the new task and executes it. Click OK on the message boxes with the text Hello World and Hello Again.

    If you look at the Folders view, you can see that there are now two copies of the Hello World task in the list. The deployed copy can be seen in the Folders view under Remote Tasks » Deployed Tasks. This is the copy in the consolidated database. The deployed copy of the task can no longer be changed. The design-time copy of the task is still visible under Remote Tasks. This task can be changed and can be deployed again with a new name.

    You can assign a deployed task to additional Agents at any time by right-clicking it and choosing Add Recipients.

Résultat

The remote task is executed.