cannot inject entitymanagerfactory in a helper class..
I want to cache a inject EnityManagerFactory and use it to create application managed entity manager when needed. I thought of writing a single ton class and to store entitymanagerfactory reference and use it as wrapper to EnityManagerFactory.So, that this can be used across my beans to create entitymanager. but injection of EntityManagerFactory is not happening as my class is not a container managed class.
Can any one help me to inject a EntityManagerFactory and cache it for use across beans.

