I posted a question a few days ago mentionning Spring's OpenEntityManagerInViewFilter: ui:repeat inside a ui:repeat and LazyInitException
What I'd like to know is of a way to test if an EntityManager is available during a request. What is a good way of doing this?