Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable built-in GWT detection rule / disable default pojo rules

SOLVED
Highlighted
Adventurer

how to disable built-in GWT detection rule / disable default pojo rules

Hi,

I'm having trouble overriding default transaction detection rule in GWT application.

We want the transactions to be detected by custom rule further downstream, but transactions keep beeing detected and intercepted at GWT RPC level by some default rule - from agen log:

INFO POJORuleApplier - [CustomMatchPointDefinition{businessTransactionName='GWT', matchPointRule=POJOMatchRule{matchClassType=MATCHES_CLASS, classMatch=SM{ex_type=EQUALS, ex_pattern='com.google.gwt.user.server.rpc.RPC', type=EQUALS, pattern='com.google.gwt.user.server.rpc.RPC'}, methodMatch=[SM{ex_type=EQUALS, ex_pattern='invokeAndEncodeResponse', type=EQUALS, pattern='invokeAndEncodeResponse'}],, splitOperationType=0, splitOperation='null', excludes=null, backgroundTask=false, displayName='GWT', splitConfig=[com.singularity.ee.controller.api.dto.transactionmonitor.transactiondefinition.pojo.SplitConfig@1bfef486],[com.singularity.ee.controller.api.dto.transactionmonitor.transactiondefinition.pojo.SplitConfig@8b4eb664],, hashCode=null}, entryPointType=POJO, background=false, enabled=false, attachedEntity=null, agentType=APP_AGENT, matchRuleString='null'}, 

I've tried to setup custom pojo rules with high priority, but to no result.

Any suggestions?

 

regards,

Ugis

how to disable built-in GWT detection rule / disable default pojo rules
3 REPLIES 3
AppDynamics Team

Re: how to disable built-in GWT detection rule / disable default pojo rules

Hi Ugis,

 

GWT is one of few frameworks that have POJO auto-discovery out-of-the-box. In order to disable it, add below element inside <bci-processing-excludes> in app-agent-config.xml file.

 

<custom-exclude filter-type="EQUALS" filter-value="com.google.gwt.user.server.rpc.RPC"/>

 If you want to disable all of these frameworks that pick up POJO OOTB, then you can set/create following node property:

  • Name: framework-support
  • Type: String
  • Value: none
Highlighted
Adventurer

Re: how to disable built-in GWT detection rule / disable default pojo rules

Thanks for info, will try out.
It would be helpful to have this information in the documentation somewhere – what are individual types of auto discovery, that can be disabled in such way. I’ve lost 2-3 days trying out things before understanding came that this auto discovery is the issue.

Regards,

Ugis
Highlighted
AppDynamics Team

Re: how to disable built-in GWT detection rule / disable default pojo rules

Hi Ugis,

 

Yes, I agree and also my opinion that this could be better documented. There were internal requests previously regarding this, but does not seem like it has been fully followed through. I'll look to follow up internally again.

 

Appreciate it and sorry you had to spend some additional cycles due to this.