Retrait de la classe TAI (Trust Association Interceptor) à l'aide de scripts

Vous pouvez retirer la classe TAI (Trust Association Interceptor) à l'aide de l'outil wsadmin.

Avant de commencer

L'outil wsadmin doit être en exécution avant que vous ne commenciez cette tâche. Pour plus d'informations, voir Démarrage du client de scriptage wsadmin à l'aide de l'outil de scriptage wsadmin.

Pourquoi et quand exécuter cette tâche

Utilisez l'exemple ci-après sous forme de fichier script Jacl et exécutez-le avec l'option "-f" :

Procédure

A l'aide de 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

Résultats

Exemple de sortie :
[root@svtaix23] /tmp
==>/usr/6*/A*/profiles/D*/bin/wsadmin.sh -f tai.jacl

WASX7209I: Connected to process "dmgr" on node svtaix23CellManager01 using SOAP connector;  
The type of process is: 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.

Icône indiquant le type de rubrique Rubrique de tâche



Icône d'horodatage Dernière mise à jour: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_taincepter
Nom du fichier : txml_taincepter.html