use of com.sun.enterprise.config.serverbeans.Clusters in project Payara by payara.
the class ActiveJmsResourceAdapter method isClustered.
private static boolean isClustered() {
Domain domain = Globals.get(Domain.class);
Clusters clusters = domain.getClusters();
if (clusters == null)
return false;
List clusterList = clusters.getCluster();
ServerContext serverctx = Globals.get(ServerContext.class);
return JmsRaUtil.isClustered(clusterList, serverctx.getInstanceName());
}
Aggregations