我正在尝试在 Web 服务中注入托管 Bean,但注入的 Bean 始终为空。有谁知道为什么,如果可以,您能否提供一些提示或解决方法?
@WebService(targetNamespace = "http://impl.soap.valueservice.drivelog.com/", endpointInterface = "com.drivelog.valueservice.soap.impl.ValueService", portName = "ValueServiceImplPort", serviceName = "ValueServiceImplService")
public class ValueServiceImpl implements ValueService {
@Inject
private ValueServiceFacade valueBean;
...
}
@ManagedBean
public class ValueServiceFacadeImpl implements ValueServiceFacade {
...
}