void disconnectUsersOfApplication(IEssOlapServer server, String applicationName) throws EssException {
// get the connections to the server
IEssIterator connections = server.getConnections();
// loop the connections
for (int i = 0; i < connections.getCount(); i++) {
// cast to a connection info object
IEssOlapServer.IEssOlapConnectionInfo connection =
(IEssOlapServer.IEssOlapConnectionInfo)connections
.getAt(i);
// if the connection is to the target app
if (connection.getConnectedApplicationName()
.equalsIgnoreCase(applicationName)) {
// log them off
connection.logoffUser();
}
}
}
Thursday, October 13, 2011
Using the Java API to Logout Users From a Server
There was a question on the Network54 board today regarding the Java API and logging off all users from a given application. I quickly wrote up a quick (but untested) bit of Java API code as an example, but decided to post it here as Network54 mangles the formatting of code examples. Without further ado, here is the code in a more readable format:
Subscribe to:
Post Comments (Atom)
So Long 2025 and Welcome 2026
As we wrap up 2025 and head into 2026, it’s worth taking a quick look back and taking a sneak peek ahead. We were proud to show our leader...
-
Note: I have posted a PDF version of this blog post on our website at http://www.appliedolap.com/downloads. Back in the days when I starte...
-
I had managed to go for the past 5 months, since I moved to Windows 7 64-bit on my laptop with Essbase 11.1.2, without the need to connect t...
-
There are times when Essbase users may need to see an ad-hoc collection of members aggregated together in Essbase, and that isn’t always an...
No comments:
Post a Comment