THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
def findObjectName(objectId): index = objectId.find('(') return objectId[0 : index] node = AdminNodeManagement.listNodes()[0] server = AdminConfig.list('Server') nodeName = findObjectName(node) serverName = findObjectName(server) webContainer = AdminConfig.list('WebContainer', node) webContainerDetails = AdminConfig.show(webContainer) if webContainerDetails.find("com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror") == -1: print "creating prop: com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror" AdminServerManagement.configureCustomProperty(nodeName, serverName, "WebContainer","com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror", "true") if webContainerDetails.find("com.ibm.ws.webcontainer.invokefilterscompatibility") == -1: print "creating prop: com.ibm.ws.webcontainer.invokefilterscompatibility" AdminServerManagement.configureCustomProperty(nodeName, serverName, "WebContainer", "com.ibm.ws.webcontainer.invokefilterscompatibility", "true") |
Thanks to Christoph Nenning (christoph dot nenning at lex-com at net)
JSESSIONID handling
IBM WebSphere Application Server uses the JSESSIONID information to keep track of the client session. If you have an application where the application client must navigate across multiple WebSphere Application Server nodes residing in same domain, then the JSESSIONID information may be over-written on the client because multiple JSESSIONID cookies received with the same name and path.
...