Search in sources :

Example 1 with Clusters

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());
}
Also used : ServerContext(org.glassfish.internal.api.ServerContext) Clusters(com.sun.enterprise.config.serverbeans.Clusters) ArrayList(java.util.ArrayList) List(java.util.List) Domain(com.sun.enterprise.config.serverbeans.Domain)

Aggregations

Clusters (com.sun.enterprise.config.serverbeans.Clusters)1 Domain (com.sun.enterprise.config.serverbeans.Domain)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ServerContext (org.glassfish.internal.api.ServerContext)1