return result;
}
public static Cluster getCluster()
{
ConfigContext configCtx = null;
String instanceName = null;
Cluster result = null;
try {
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, ".getCluster->:");
}
ServerContext serverContext = ApplicationServer.getServerContext();
if (serverContext == null) {
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, ".getCluster: No ServerContext");
}
return null;
}
configCtx = serverContext.getConfigContext();
instanceName = serverContext.getInstanceName();
result =
ClusterHelper.getClusterForInstance(configCtx, instanceName);
} catch (ConfigException e) {
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,
".getCluster: ConfigContext: " + configCtx.toString()
+ " ; instanceName: " + instanceName
+ " ; exception: " + e);
}
} finally {
if(_logger.isLoggable(Level.FINE)) {