Hi all,

Need help please with Websphere 6.1 API to excute AdminTask
listChains:

set targetObjectc [$AdminConfig getid /Cell:rohitbuildCell01/
Node:rohitbuildNode01/Server:server1/TransportChannelService:/]

$AdminTask listChains $targetObject

When doing the same with API I can't find specific info how to create
the targetObject and make it work.
Can someone explain how?
thanks.

public String [] listChains(ObjectName targetObject, String
acceptorFilter,AdminClient _soapClient) {

CommandMgr cmdMgr = CommandMgr.getClientCommandMgr
(_soapClient);
AdminCommand adminCommand;
CommandResult commandResult;

String res[]= null;
try {
adminCommand = cmdMgr.createCommand("listChains");
adminCommand.setParameter("acceptorFilter", acceptorFilter);
adminCommand.setTargetObject(targetObject);
adminCommand.execute();
commandResult = adminCommand.getCommandResult();

if(!commandResult.isSuccessful()){
throw new AdminException(commandResult.getException());
}else{

// TODO:

}
}catch(AdminException ae){
ae.printStackTrace();
} catch(Exception e) {
e.printStackTrace();
}
return res;
}