Hi,
I currently have a project that is configured to use Spring and Hibernate (I let Spring take care of setting up Hibernate). I am successfully using Spring injected beans throughout my application and have also tested to make sure Hibernate is set up correctly.
I have created a
servlet that checks incoming requests for request parameters and does a database search based on them. I would like to use Hibernate to do this but am not sure how to use it from my servlet. Can anyone provide an example/suggestions?
I also have a Spring managed DAO which I'm using for all my persistence handling. Preferrably, from my servlet I'd call find() on my DAO. So I guess my question is more 'how do I Spring inject Spring managed beans onto my servlet'?
My servlet currently looks like this:
Thanks