Tag Archives: interceptor

@Throttled: the CDI extension

In JavaEE the throttling is often done using a stateless bean cause they are by designed pooled and the pool provide a contention point. This is however IMO a workaround more than a solution for the throttling need and a small CDI extension can be worth it.

Continue reading

[Quick Tip] Disable TomEE/OpenEJB stat interceptor

TomEE and OpenEJB add by default an interceptor on each EJB to report basic metrics through JMX.

If you don’t want it you can disable it easily.

You basically just need to add the system property (in conf/system.properties to keep it persistent):

openejb.stats.interceptor.disable = true