title: JBoss: What does the warning EJBTHREE-1246 from the InterceptorRegistry mean?
body: <p>I am currently developing an EJB 3.0 based application on the JBoss AS 5.0.0.GA and just recently the following warning showed up in the server log:</p>
  
  <pre>
  09:50:19,735 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
  09:50:19,735 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
  09:50:19,735 WARN  [InterceptorRegistry] applicable interceptors is non-existent for ...
  ...
  </pre>
  
  <p>The warnings are generated as soon as an EJB (a stateless session bean) is injected into a backing bean of my JSF web-application. The beans do work without problems though, but I still would like to know where that warning comes from and what I can do to avoid it.</p>
  
  <p>I have already searched a bit around, but haven't found a good answer (some say, bean developers do not have to worry, but its a warning, so I'd like to have a better solution):</p>
  
  <ul>
  <li><a href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=147292" rel="noreferrer">http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;t=147292</a></li>
  <li><a href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4180366" rel="noreferrer">http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4180366</a></li>
  <li><a href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4140136" rel="noreferrer">http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4140136</a></li>
  <li><a href="https://jira.jboss.org/jira/browse/EJBTHREE-1246" rel="noreferrer">JBoss JIRA Issue about the warning</a> (Not that helpful in my opinion)</li>
  </ul>
  
  <p>So has anyone an explanation what causes the warning (in terms of a bean developer, not application server developer) and what to do to avoid it?</p>
  
  <p><strong>Update:</strong> I've just upgraded JBoss to 5.0.1.GA (<a href="http://www.jboss.org/downloading/?projectId=jbossas&amp;url=https://sourceforge.net/project/showfiles.php?group_id=22866&amp;package_id=16942&amp;release_id=663566" rel="noreferrer">Download</a>, <a href="https://sourceforge.net/project/shownotes.php?release_id=663566&amp;group_id=22866" rel="noreferrer">Release-Notes</a>) but unfortunatly the warning still appears.</p>