I have added a PhaseListener
to faces-config.xml
:
com.project.NotificationListener>
If you can't go JSF 2.2 your best bet is to use Deltaspike Core.
It offers
MyCDIStuff myCDIStuff = BeanProvider.getContextualReference(MyCDIStuff.class, false);
Deltaspike is how you should get stuff rather then inventing that yourself. For example if you must have the BeanManager (for example to fire an event) then Deltaspike core also offers BeanManagerProvider
.
http://deltaspike.apache.org/core.html