I want to know what is the procedure to make hibernate and web services work together.I am using netbeans IDE with Glassfish.I am not getting where to put my hibernate.cfg.xml and .hbm files so that my web service can access them.I tried a lot of search but found nothing complete.Any help in this direction is appreciated.
Apparently you did not understand the answer. Your DAO layer will be completely independent of the web service. You can develop it and test it separately. Information on DAOs is readily available on the web.