Hi,
I have a WS impl like this:
@WebService(endpointInterface = "com.service.AService", serviceName="AService")
public class AServiceImpl implements AService {
public String aM(String aKey) {
...
}
}
I have a bean definition:
<bean id="mKDao" class="com.dao.MDao"/>
How can I inject this "mKDao" in the aM method above? Will @Resource
work or there is another way?
In the servlet, I could use the statement below and get the bean.
WebApplicationContext ctx =
WebApplicationContextUtils.getWebApplicationContext(getServletContext());
Nishant