.main.admingui.console-jca-plugin.8.0.0-JDK17-M7.source-code.connectorConnectionPoolProperty.jsf 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
The newest version!
#include "/jca/connectorConnectionPoolTabs.inc"
#include "/common/shared/alertMsg_1.inc"
$attribute{tableRowGroup});
getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList});
}
removeEmptyProps(props="#{requestScope.newList}" modifiedProps="#{pageSession.tableList}");
javaToJSON(obj="#{pageSession.tableList}" json="#{requestScope.tmpJSON}");
gf.restRequest(endpoint="#{pageSession.selfUrl}/property.json", method="POST", data="#{requestScope.tmpJSON}", result="#{requestScope.restResponse}");
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.json"
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}");
/>
"
#include "/common/resourceNode/poolNameSection.inc"
#include "/common/resourceNode/confidentialPropsTable.inc"
"
#include "/common/shared/changeButtonsJS.inc"