Hi, you've reached the website of Mark Menard, Freemason, developer, businessman, photographer, motorcyclist and all around nice guy.
The main joy in my life is Sylva, my loving partner and friend. (You will see plenty of pictures of her. Also check out our site.) My professonal career is running a consulting firm concentrating on business automation and custom software. I enjoy software development, motorcycles, photography, dancing, freemasonry and travel.
Here you will find galleries of my latest photos, thoughts on software development, freemasonry, the occassional politics, and other things. Enjoy your time here.
Mark
An ongoing photographic study of Freemasonry.
To contact Mark send an email to mark@mjm.net. You will receive an auto response from my mail server to verify you're not a spammer.
© Mark Menard 2002-2007
JPA Open Session in View
Hi Li,
I haven't used the OpenEntityManagerInViewInterceptor yet. In general I have shied away from using the open session in view methodology in my development.
With that said I did accidentally create an open entity manager in the view. I used the EntityManagerFactory to make an EntityManager in a DAO. This new em was not tied to the transaction, and stayed open all the way through the view layer. It really confused me. That was when I figured out how to get a transactional em in my DAO's, Getting a Transactional EntityManager in a JpaDaoSupport Derived DAO.