We have an web application developed which works fine (JSF/Spring/Database). Have used HibernateDAO Support for the Persistance.
Now few services needs to be exposed as WebServices. So i have created new class and hosted as webservice, internally calling the DAO class which extends the HibernateDAOSupport by context.getbean("dao").
By Doing so i am not able to get the sessionfactory/ datasource and others. While calling the webservice, the bean creation fails with error in creating the bean "dao", and it gives sessionfactory and datasource as the attributes.
I do agree that these would be loaded during application startup by the container. But how to achieve the same from Standalone client
Would request to guide on solving the above issue.