Actually I spoke too soon. I can inject and the UserSessionService and the object is not null, however, when I try to get the ServerInfo object with
UserSession userSession = _userSessionService.getUserSession() I get an error:
'getUserSession called on an inactive session.'
I'm calling the method:
public String getServiceContent() {
ServerInfo serverInfoObject = getServerInfoObject();
String serviceUrl = serverInfoObject.serviceUrl;
return serviceUrl;
}
I'm testing this by triggering the call as a result of a button click inside of a view in the Datacenter Monitor View tab.