paresh bhavsar [
http://community.jboss.org/people/bhavsar.er] created the discussion
"Default Interceptor Not called"
To view the discussion, visit:
http://community.jboss.org/message/552552#552552
--------------------------------------------------------------
Hi,
I am having trouble calling default interceptor using ejb-jar.xml. When i use the same
using class level interceptor @interceptors it works.
Please let me know where i am doing wrong.
Thanks.
=======ejb-jar.xml==========
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<interceptors>
<interceptor>
<interceptor-class>com.eks.ias.service.location.service.ExceptionInterceptor</interceptor-class>
<around-invoke>
<method-name>test</method-name>
</around-invoke>
</interceptor>
</interceptors>
<assembly-descriptor>
<!--
Default interceptor that will apply to all methods for all beans in
deployment
-->
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>com.eks.ias.service.location.service.ExceptionInterceptor</interceptor-class>
<method>
<method-name>test</method-name>
</method>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/552552#552552]
Start a new discussion in EJB 3.0 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]