title: CDI Interceptors are not invoked in EJBs
body: <p>I am trying to use CDI-like interceptors with EJB on Wildfly 8.2, but they are not invoked in any EJB. However, they are working just fine with CDI objects.</p>
  
  <pre><code>@InterceptorBinding
  @Target(ElementType.TYPE)
  @Retention(RetentionPolicy.RUNTIME)
  public @interface DataTransferObject {
  
  }
  </code></pre>
  
  <p><br/>
  Interceptor to clone entity to DTO as return;</p>
  
  <pre><code>@Interceptor
  @DataTransferObject
  public class DataTransferObjectInterceptor {
  
      @AroundInvoke
      public Object clone(InvocationContext invocationContext) throws Exception {
          Object actual = invocationContext.proceed();
          Object clone = actual.getClass().newInstance();
          BeanUtil.clone(actual, clone);
          return clone;
      }
  }
  </code></pre>
  
  <p><br/>
  The interceptor doesn't catch this;</p>
  
  <pre><code>@Stateless
  @DataTransferObject
  public class BaseCompanyService implements CompanyService {
  
      @EJB
      private CompanyDAO companyDAO;
  
      @Override
      public void create(Company entity) throws EntityException {
          companyDAO.create(entity);
      }
  
      .
      .
  }
  </code></pre>
  
  <p><br/>
  But it is working OK here;</p>
  
  <pre><code>@Path("/company")
  @Produces(MediaType.APPLICATION_JSON)
  @DataTransferObject
  @Slf4j
  public class CompanyResource implements Resource {
  
      @EJB
      private CompanyService companyService;
  
      @GET
      @Path("/check")
      @Override
      public Success check() {
          return new Success("The company service is running.");
      }
  
      @PUT
      @Consumes(MediaType.APPLICATION_JSON)
      public Success create(@Valid Company entity) throws EntityException {
          companyService.create(entity);
          log.info("The company with id \"{}\" is successfully created.", entity.getId());
          return new Success("The company is successfully created.");
      }
  
      .
      .
  }
  </code></pre>
  
  <p><br/>
  beans.xml</p>
  
  <pre><code>&lt;interceptors&gt;
      &lt;class&gt;io.rraa.interceptors.DataTransferObjectInterceptor&lt;/class&gt;
  &lt;/interceptors&gt;
  </code></pre>