[jboss-user] [EJB 3.0] - Why interceptors can't be deployed using ejb-jar.xml?

littlepinkie do-not-reply at jboss.com
Tue Apr 1 23:15:58 EDT 2008


Hi, I'm trying to get familiar with the interceptors in ejb3. I succeeded in using it with annotations, and it worked well. But when I remove the @Interceptors and put <interceptor-binding> in the ejb-jar.xml,  the interceptor doesn't work.
Here is the ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | <ejb-jar
  | 	xmlns="http://java.sun.com/xm./ns/javaee"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  | 						http://java.sun.com/xml/ns/javaee/ejb-jar_3.0.xsd"
  | 	version="3.0">
  | 	
  | 	<assembly-description>
  | 		<interceptor-binding>
  | 			<ejb-name>HelloWorldBean</ejb-name>
  | 			<interceptor-class>com.abc.interceptors.Profiler</interceptor-class>
  | 		</interceptor-binding>
  | 	</assembly-description>
  | </ejb-jar>
  | 

Thanks in advance for any help!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140767#4140767

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140767



More information about the jboss-user mailing list