Has anybody used ajax in hibernate project ? Any pointers, help will be appreciated.
You might be referring to the open session in view problem, but your question is a bit too minimal at this point.
As for me: Yes I have used Ajax & Hibernate in the same project using Wicket, and I haven't run into any problems (when taking the above into account).
We use both every day.
However, the two technologies are not related, they don't interact.
So there is nothing specific, you can just use each... ;-)
AJAX and Hibernate are not related almost at all. They might become partially related in the context of one framework or another. The flow would look like that:
Hibernate (fetches entities) -> service layer (manipulates the result) -> controller (serializes the objects to xml/json/whatever) -> ajax (displays the result dynamically)
You see, there are many steps between hibernate and ajax. You will eventually bump into a problem, which was already mentioned and is solved by the open-session-in-view
.
I guess this is the best link https://blueprints.dev.java.net/ajax-faq.html