Installing a service map by using the command line

Install a service map that was created in IBM® Rational® Application Developer to WebSphere® Application Server so that you can route or transform service requests when they are intercepted by the local mapping service.

Before you begin

You must have created a service map library, by using IBM Rational Application Developer, to specify the settings for the service mapping that you want to apply. Use the service map library that you created in IBM Rational Application Developer to install a service map to IBM WebSphere Application Server; see "Service mapping" in the Rational Application Developer Information Center.

You can use the inspectServiceMapLibrary command to inspect the service maps in a service map library before installing them. For more information, see inspectServiceMapLibrary command

About this task

You can install a service map by using wsadmin commands, or by using the administrative console as described in Installing a service map by using the administrative console.

Procedure

  1. Launch wsadmin by starting the wsadmin scripting tool.
  2. Use the installServiceMap command to install a new service map:
    AdminTask.installServiceMap('-sourceLibrary servicemap.zip -sourceServiceMap simple.srvcmap -name MyServiceMap -description "My simple service map" -targetServiceEndpoints[[EnhancedServiceService http://localhost:9080/EnhancedServiceService]]')
    For more information about the installServiceMap command, see installServiceMap command. The command installs the service map and returns the new service map name.
  3. Optional: Use the listServiceMaps command to display a list of each service map in the cell:
    AdminTask.listServiceMaps()
    Alternatively, use the showServiceMap command to display all parameters that are associated with a single service map, as shown:
    AdminTask.showServiceMap('MyServiceMap')
  4. Save your configuration changes by using the following command:
    AdminConfig.save()
  5. If you are in a clustered environment, you must synchronize the nodes. Use the syncActiveNodes script in the AdminNodeManagement script library to synchronize each active node in your environment, as the following example demonstrates:
    AdminNodeManagement.syncActiveNodes()

Results

Your service map is installed.

What to do next

You can create a local mapping service and attach a service map to that local mapping service. See Creating a local mapping service by using the command line and Attaching a service map to a local mapping service by using the command line

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Tuesday, 22 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-base-iseries&topic=tsm_installservicemap
File name: tsm_installservicemap.html