Priyanka Dhingra:
1. I think the thing you are looking for can be configured here
1 tomcat/conf/context.xml
2. check this
http://www.liferay.com/community/forums/-/message_boards/message/316717
I tried that, but is not what I am searching for, What is suggesting there (in 2.) is to have a only one Hibernta.cfg.xml for custom portlets, but I don´t need that, What I need is to activate that property for Liferay Tables, by example "CalEvent", in the way that each time a transition occurs with that table, then I listen to it and do something else and you can do that just putting a class in the property : (by example)
<property name="hibernate.current_session_context_class">com.autobizlogic.abl.session.LogicThreadLocalSessionContext</property>
instead of
<property name="hibernate.current_session_context_class">thread</property>
In other words, I want to listen to the transactions (Insert, Update or Delete), that occurs in the Liferay's tables, and in a environment that is using Hibernate as persistence layer is as simple as changing that mention property, in theory is possible to do in a properties file, but that property, doesn't appears
see here Please sign in to flag this as inappropriate.