You can use the Jython or Jacl scripting languages to configure security. The commands and parameters in the ChannelFrameworkManagement group can be used to create and manage transport channels and transport channel chains.
The createChain command creates a new chain of transport channels that are based on a chain template.
Target object
The instance of the transport channel service under which the new chain is created. (ObjectName, required)Required parameters and return values
Examples
Batch mode example usage:
$AdminTask createChain (cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1) {-template WebContainer (templates/chains|webcontainer-chains.xml#Chain_1) -name trialChain1 }
$AdminTask createChain (cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1) {-template WebContainer (templates/chains|webcontainer-chains.xml#Chain_1) -name trialChain1 -endPoint (cells/rohitbuildCell01/ nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3) }
AdminTask.createChain('cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1', '[-template "WebContainer (templates/chains|webcontainer-chains.xml#Chain_1)" -name trialChain]')
AdminTask.createChain('cells/rohitbuildCell01/nodes/rohitbuildCellManager01/ servers/dmgr|server.xml#TransportChannelService_1', '[-template "WebContainer(templates/chains|webcontainer-chains. xml#Chain_1)" -name trialChain -endPoint "(cells/ rohitbuildCell01/nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3)"]')
AdminTask.createChain('cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1', ['-template', "WebContainer (templates/chains|webcontainer-chains.xml#Chain_1)", '-name', 'trialChain'])
AdminTask.createChain('cells/rohitbuildCell01/nodes/rohitbuildCellManager01/ servers/dmgr|server.xml#TransportChannelService_1', ['-template', "WebContainer(templates/chains|webcontainer-chains. xml#Chain_1)", '-name', 'trialChain', '-endPoint', "(cells/ rohitbuildCell01/nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3)"])
Interactive mode example usage:
$AdminTask createChain {-interactive}
AdminTask.createChain ('[-interactive]')
AdminTask.createChain (['-interactive'])
The deleteChain command deletes an existing chain and, optionally, the transport channels in the chain.
Target object
The chain to be deleted. (Object name, required)
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask deleteChain trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#Chain_1093554462922)
$AdminTask deleteChain trialChain(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#Chain_1093554378078) {-deleteChannels true}
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)')
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)', '[-deleteChannels true]')
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)')
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)', ['-deleteChannels', 'true'])
Interactive mode example usage:
$AdminTask deleteChain {-interactive}
AdminTask.deleteChain ('[-interactive]')
AdminTask.deleteChain (['-interactive'])
The listChainTemplates command displays a list of templates that you can use to create chains in this configuration. All templates have a certain type of transport channel as the last transport channel in the chain.
Target object
None
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listChainTemplates {}
$AdminTask listChainTemplates "-acceptorFilter WebContainerInboundChannel"
AdminTask.listChainTemplates()
AdminTask.listChainTemplates('[-acceptorFilter WebContainerInboundChannel]')
AdminTask.listChainTemplates()
AdminTask.listChainTemplates(['-acceptorFilter', 'WebContainerInboundChannel'])
Interactive mode example usage:
$AdminTask listChainTemplates {-interactive}
AdminTask.listChainTemplates ('[-interactive]')
AdminTask.listChainTemplates (['-interactive'])
The listChains command lists all the chains that are configured under a particular instance of the transport channel service.
Target object
The instance of the transport channel service under which the chains are configured. (ObjectName, required)
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328)
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328) {-acceptorFilter WebContainerInboundChannel}
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328) {-endPointFilter WC_adminhost}
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', '[-acceptorFilter WebContainerInboundChannel]')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', '[-endPointFilter WC_adminhost]')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', ['-acceptorFilter', 'WebContainerInboundChannel'])
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', ['-endPointFilter', 'WC_adminhost'])
Interactive mode example usage:
$AdminTask listChains {-interactive}
AdminTask.listChains ('[-interactive]')
AdminTask.listChains (['-interactive'])