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
- Launch wsadmin by starting the wsadmin scripting tool.
- 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.
- 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')
- Save your configuration changes by using the following
command:
AdminConfig.save()
- 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.