I have an application that is currently deployed as an single war inside ear but I would like to migrate this to be deployed as single war (to decrease build time). The problem is that ejb-jar.xml file that is stored in war in WEB-INF is not read by Wildfly 10 (nor 11) when application is not deployed in ear. From what I know there is no other option to create global interceptor. Adding this manually to each session bean could be problematic as we already have about 200 beans. Simple war with one resource and global interceptor that should be launched in attachment.
Do you know any solution for such problem? Should I create a ticket for this to be solved?
If your only problem is to hook interceptors you can place an ejb-jar.xml
with appropriate markup (interceptors, assembly-descriptor, etc...) in the WEB-INF directory of your web module.