Just pack this custom class in jar (you will probably need to create simple maven module - pom file attached) and place jar in JBOSS_HOME/common/lib, then also replace class org.jboss.ejb3.tx.BMTTxInterceptorFactory in configuration files ejb3-interceptors-aop.xml and singleton-container-aop.xml with custom class.