#!/bin/sh

# Fijando path de configuracion de Coherence
CACHE_XLNETS_DIR=/aplic/n38/coherence_services.3.5.3/cache_xlnets_desarrollo
COHERENCE_CONFIG=$CACHE_XLNETS_DIR/config
N38ENTORNOCACHECOMUN=$COHERENCE_CONFIG
# Fijando parametros de configuracion de Coherence
COH_OPTS="-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true"
COH_OPTS="$COH_OPTS -DN38ENTORNOCACHECOMUN=$N38ENTORNOCACHECOMUN"
#COH_OPTS="$COH_OPTS -verbose:class"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.log.level=9"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.mode=prod"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.cacheconfig=config-Coh353-XLNetS-wl-desarrollo-xlnets.xml"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.override=tangosol-coherence-override-desarrollo-xlnets.xml"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.extend.enabled=true"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.distributed.localstorage=false"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.localhost=webldes49.ejgvdns"
COH_OPTS="$COH_OPTS -Dtangosol.coherence.localport=50003"

COH_OPTS="$COH_OPTS -Dtangosol.pof.enabled=true"
COH_OPTS="$COH_OPTS -Dtangosol.pof.config=desarrollo-xlnets-pof-config.xml"

COH_OPTS="$COH_OPTS -Dtangosol.coherence.management.report.configuration=reports/report-all.xml"

export COH_OPTS

COH_CP=$COH_CP:$COHERENCE_CONFIG

JAVA_OPTIONS="${JAVA_OPTIONS} ${COH_OPTS}"

export JAVA_OPTIONS
