cancel
Showing results for 
Search instead for 
Did you mean: 

BO 4.0 Java SDK to get servers status

former_member182521
Active Contributor
0 Kudos

Hi Gurus,


I have a requirement to show the server status in a custom webpage to be developed in Java SDK for BO 4.0 SP4.

for which I did some groundwork.

Required classes and method for Logon

----------------------------------------------------


com.crystaldecisions.sdk.framework.IEnterpriseSession

com.crystaldecisions.sdk.framework.CrystalEnterprise

com.crystaldecisions.sdk.exception.SDKException


IEnterpriseSession basicLogon() throws SDKException

{

ISessionMgr sessionManager = CrystalEnterprise.getSessionMgr();

IEnterpriseSession enterpriseSession = sessionManager.logon("username", "password", "<cms>:<port>", "secEnterprise");

return enterpriseSession;

}



Required classes and method for Server Status

----------------------------------------------------

com.crystaldecisions.sdk.framework.IEnterpriseSession

com.crystaldecisions.sdk.exception.SDKException

com.crystaldecisions.sdk.occa.infostore.IInfoObject

com.crystaldecisions.sdk.occa.infostore.IInfoObjects

com.crystaldecisions.sdk.occa.infostore.IInfoStore

com.crystaldecisions.sdk.plugin.desktop.server.IServer

com.crystaldecisions.sdk.plugin.desktop.server.ExpectedRunState




void ShowServer(IEnterpriseSession enterpriseSession) throws SDKException

{

IInfoStore infostore = (IInfoStore)enterpriseSession.getService("InfoStore");

String serverQuery = "SELECT SI_ID FROM CI_SYSTEMOBJECTS WHERE SI_KIND='SERVER'";

IServer server = (IServer) infostore.query(serverQuery);

}


Out.println(IServer");



I am trying to get the server status for all the available BO servers within an environment. Could anyone help me in formulating the complete code with a single jsp which outputs server status.

I would be calling this jspo from my Web application

Regards,

Mani

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mani,

You can find some of the available sample codes for Server Management API here.

Check for the sample named Display Server Metrics and List Server Services.

Hope it helps.

Regards,

Anchal

Answers (0)