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 through the command line

Before you begin

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 application servers. Do not run it against earlier versions.

Command-line help is provided with each of the service integration technologies commands:
  • For a list of all the available gateway commands, plus a brief description of each, enter the following command:
    wsadmin> $AdminTask help WSGateway
  • For detailed help on a given command, enter the following command:
    wsadmin> $AdminTask help command_name

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
Working with gateway services
Creating a new gateway service configuration
Modifying an existing gateway service configuration
Related information
Target services settings

Reference topic

Terms of Use | Feedback

Last updated: 5 Oct 2005
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc\ref\rwsg_cli_tgt_add.html

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