attachServiceMap command

Use the attachServiceMap command to attach a service map to a local mapping service.

You can also attach a service map to a local mapping service when you create that local mapping service, by using the -attachSMName parameter. See createLMService command.

Note: A local mapping service can have only one service map attachment. However, a service map can be attached to multiple local mapping services. If you use the attachServiceMap command to attach a service map to a local mapping service that already has a service map attached, you replace the old service map with the new service map.

Target object

The name of a local mapping service, as returned by the createLMService command.

Required parameters

-smName
The name of the service map to which you want to attach the target local mapping service. The service map name is returned by the installServiceMap command.

Optional parameters

None

Example usage

The following examples attach the local mapping service named StockQuoteService to a service map named Route.

Using Jython:

Input message:
AdminTask.attachServiceMap('StockQuoteService', ['-smName Route']) 
Output message:
'CWSMW0245I: Successfully attached service map "Route" to local mapping service "StockQuoteService".'

Using Jacl:

Input message:
 $AdminTask attachServiceMap StockQuoteService "-smName Route" 
Output message:
CWSMW0245I: Successfully attached service map "Route" to local mapping service "StockQuoteService". 

Icon that indicates the type of topic Reference 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-express-iseries&topic=rsm_attachservicemapcmd
File name: rsm_attachservicemapcmd.html