0 Replies Latest reply on Dec 19, 2006 5:28 PM by fabio.ita04

    Filter Injection

      Does resource injection in Servlet Filters works with JBoss AS 4.0.5? I'm trying to inject an EntityManagerFactory in a authentication filter, but the reference isn't set via injection, and a NullPointerException occurs.

      I can successfully get the required EntityManagerFactory via Initial Context (the resource surelly is available via jndi), but it's desirable this could be possible via @PersistenceUnit injection.

      Thanx in advance,