Mit Scripting die TAI-Klasse (Trust Association Interceptor) entfernen
Mit dem Tool wsadmin können Sie die TAI-Klasse entfernen.
Vorbereitende Schritte
Informationen zu diesem Vorgang
Vorgehensweise
Mit Jacl:
set variableName "com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus"
set cellName $env(local.cell)
foreach taiEntry [$AdminConfig list TAInterceptor] {
set interceptorClass [lindex [$AdminConfig showAttribute $taiEntry interceptorClassName] 0]
if { [string compare $interceptorClass $variableName] == 0 } {
puts "found $interceptorClass"
puts "Removing the TAIntercepter class '$interceptorClass'"
set tai taiEntry
#set t [$AdminConfig getid /Cell:$cellName/TAInterceptor:/]
#$AdminConfig remove $t
$AdminConfig remove $taiEntry
puts "'$interceptorClass' is removed."
break
}
}
if { ![info exists tai] } {
puts "The class '$variableName' does not exist."
}
$AdminConfig save
Ergebnisse
[root@svtaix23] /tmp
==>/usr/6*/A*/profiles/D*/bin/wsadmin.sh -f tai.jacl
WASX7209I: Mit Prozess "dmgr" auf Knoten svtaix23CellManager01 über SOAP-Connector verbunden.
Typ des Prozesses: DeploymentManager
found com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus
Removing the TAIntercepter class 'com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus'
'com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus' is removed.