WebSphere WebSphere Application Server Network Deployment, Version 6.0.x Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Adding a target service to a gateway service configuration using the wsadmin tool

The command described in this topic is run using the AdminTask object of the wsadmin scripting client.

This command is only valid when run against WebSphere Application Server Version 6 and later application servers. Do not run it against earlier versions.

Command-line help is provided with each of the commands:

For additional details of the command properties, see the related reference topic.

Purpose

This command adds a target service to a gateway service.

Command name
addWSGWTargetService
Target
ObjectName of the GatewayService object.
Result
ObjectName of the created TargetService object.

The command adds the identified target as a target service to the gateway service.

The targetDestination parameter identifies a destination that might be within the same service integration bus as the gateway destination or in another bus (in which case the bus name must be specified).

You must specify one of targetDestination or targetService.

The gateway destination property com.ibm.websphere.wsgw.targets is updated to contain the new list of target destinations.

Required Parameters

name
The name of the target service.

Conditional Parameters

targetDestination
The name of the target destination.
targetService
The name of the target outbound service.

Optional Parameters

targetBus
The name of the service integration bus that contains the target service.

Example

set gwTarget [$AdminTask addWSGWTargetService $gwService {-name "AnotherTarget" -targetService "AnotherService"}]
Related concepts
Target services and gateway services
Related tasks
Creating a new gateway service configuration
Modifying an existing gateway service configuration
Related reference
Creating a new gateway service configuration using the wsadmin tool
Deleting a gateway service configuration using the wsadmin tool
Removing a target service from a gateway service configuration using the wsadmin tool
Creating a new proxy service configuration using the wsadmin tool
Deleting a proxy service configuration using the wsadmin tool
Related information
Target services settings

Reference topic

Terms of Use | Feedback

Last updated: 15 Mar 2007
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc\ref\rwsg_cli_tgt_add.html

© Copyright IBM Corporation 2004, 2007. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)