1 22 package org.jboss.ejb3.test.interceptors2; 23 24 import javax.ejb.ActivationConfigProperty ; 25 import javax.interceptor.Interceptors; 26 27 import org.jboss.annotation.ejb.Consumer; 28 29 34 @Consumer (name="MixedConsumer", 35 activationConfig={ 36 @ActivationConfigProperty (propertyName="destinationType", propertyValue="javax.jms.Queue"), 37 @ActivationConfigProperty (propertyName="destination", propertyValue="queue/mixedqueue") 38 }) 39 @Interceptors({MixedClassInterceptor.class}) 40 public class MixedConsumer implements MixedProducer 41 { 42 public void methodWithOwnOnly() 43 { 44 System.out.println("MixedConsumer methodWithOwnOnly"); 45 } 46 47 @Interceptors({XMLMethodInterceptor.class}) 48 public void method() 49 { 50 System.out.println("MixedConsumer method"); 51 } 52 53 } 54 | Popular Tags |