.main.admingui.console-jca-plugin.8.0.0-M5.source-code.connectorConnectionPoolAdvanceButtons.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-jca-plugin Show documentation
Show all versions of console-jca-plugin Show documentation
Connectors plugin bundle for GlassFish Admin Console
$attribute{lazyConnectionMap});
mapPut(map="#{lazyConnectionMap}", key="lazyConnectionEnlistment", value="#{pageSession.valueMap['lazyConnectionEnlistment']}");
gf.updateEntity(endpoint="#{pageSession.selfUrl}"
attrs="#{lazyConnectionMap}"
convertToFalse={"lazyConnectionEnlistment"});
gf.filterMap(map="#{pageSession.valueMap}" attrNames={"lazyConnectionEnlistment"} keep="#{false}" resultMap="#{pageSession.valueMap}");
gf.updateEntity(endpoint="#{pageSession.selfUrl}" attrs="#{pageSession.valueMap}"
skipAttrs="#{pageSession.skipAttrsList}"
convertToFalse="#{pageSession.convertToFalseList}"
onlyUseAttrs="#{pageSession.onlyUseAttrs}"
);
prepareSuccessfulMsg();
if ("#{valueMap['ping']}") {
urlencode(value="#{valueMap['name']}" encoding="UTF-8" result="#{pageSession.encodeName}");
gf.createAttributeMap(keys={"id"} values={"$pageSession{encodeName}"} map="#{requestScope.attrMap}");
if(#{pageSession.isAppScopedRes}){
mapPut(map="#{requestScope.attrMap}" key="appname" value="#{pageSession.encodedAppName}");
if(#{pageSession.moduleName}){
mapPut(map="#{requestScope.attrMap}" key="modulename" value="#{pageSession.encodedModuleName}");
}
}
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/ping-connection-pool"
attrs="#{requestScope.attrMap}"
method="GET"
result="#{requestScope.result}");
if ("#{requestScope.result.data['exit_code']} = SUCCESS") {
prepareAlertMsg(summary="$resource{i18n.msg.PingSucceed}", type="success");
}
if ("!(#{requestScope.result.data['exit_code']} = SUCCESS)") {
prepareAlertMsg(summary="$resource{i18njca.msg.warning.poolSavedPingFailed}", type="error");
}
}
gf.redirect(page="#{selfPage}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy