Skip to main content
14-Alexandrite
September 7, 2023
Solved

Removing all custom listeners

  • September 7, 2023
  • 1 reply
  • 1093 views

Is there a way to deactivate all custom listeners in Windchill without adjusting OOTB "StandardKeyedEventDispatcher" class?

 

Thanks in advance,

 

Best answer by HelesicPetr

Hi @xolomon 

I don't know a way how to disable just custom listeners if you have not prepared it.

 

I know one way how to set it up

 

If you set own xconf file (customListeners.xconf) to define all custom listeners that are defined as a service.xxx=listenerclass in wt.properties,

then you can just add a reference in site.xconf to your file or remove it from site xconf and this is the best way how you can easily disable and enable all custom listeners. 

 

how to  create reference to your xconf file CS296357 - How to add custom xconf reference

 

PetrH

 

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
September 8, 2023

Hi @xolomon 

I don't know a way how to disable just custom listeners if you have not prepared it.

 

I know one way how to set it up

 

If you set own xconf file (customListeners.xconf) to define all custom listeners that are defined as a service.xxx=listenerclass in wt.properties,

then you can just add a reference in site.xconf to your file or remove it from site xconf and this is the best way how you can easily disable and enable all custom listeners. 

 

how to  create reference to your xconf file CS296357 - How to add custom xconf reference

 

PetrH

 

avillanueva
23-Emerald I
23-Emerald I
September 8, 2023

@HelesicPetr is right, commenting that referenced xconf out would work with a simple push and a restart. The only other way would be introducing a flag that you can set dynamically to turn them on or off during runtime. Option 1 is much easier. I use different xconf files to separate things.