Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 EJB 3 XML 文件中配置拦截器。
我想使用拦截器来调用使用 XML 的 EJb 生命周期方法。
您可以尝试部署描述符文件中的以下配置。
<interceptor-binding> <ejb-name>SomeBean</ejb-name> <interceptor-class>com.interceptor.DefaultInterceptor</interceptor-class> <method> <method-name>businessMethod</method-name> </method> </interceptor-binding>