on 12-28-2012 7:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.