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)
Is Essbase Making a Comeback? What You Need to Know.
At the recent Kscope26 conference, Oracle showed the next generation of Essbase in several different sessions. I came away from the conferen...
-
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...
-
In a recent blog post, I expressed my dedication to installing Essbase 11.1.1 and, I figured that while I was installing it, I should docume...
No comments:
Post a Comment