在Weblogic Server控制台中,如何在域脚本

时间:2017-05-10 07:51:32

标签: weblogic weblogic12c

在我们的项目中,我们使用模板文件生成Weblogic域。在我们启动一个新生成的域后,我们在de WebConsole中看到所有列表(如部署,队列,...)默认为每页显示10行。 这很烦人,因为我们希望看到所有行,最后我们必须不断手动更改数字。 有没有办法预先设置“每页显示的行数”,例如使用脚本或模板文件?

1 个答案:

答案 0 :(得分:0)

我发现了自己。 Weblogic控制台将此类用户更改存储在名为[domain_dir] / servers / [admin_server_name] /data/console/ConsolePreferences.xml的服务器文件中。 我在我们经常查看的所有控制台列表中手动将行数更改为5000,停止服务器,并将前面提到的文件添加到我们的域模板文件中。 这是ConsolePreferences.xml的内容:

<?xml version='1.0' encoding='UTF-8'?>
<portlet-preferences>
  <portlet-preference definitionLabel="AppDeploymentsControlPortlet" user="weblogic">
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByProperty" description="The description" isModifiable="true" isMultivalued="false" value="false"/>
  </portlet-preference>
  <portlet-preference definitionLabel="WLSMessagingBridgeMonitoringTablePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>name</value>
      <value>serverName</value>
      <value>state</value>
      <value>description</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
  <portlet-preference definitionLabel="WLSMessagingBridgeConfigTablePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>name</value>
      <value>sourceDestinationName</value>
      <value>targetDestinationName</value>
      <value>Scope</value>
      <value>Partitions</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
  <portlet-preference definitionLabel="AppDeploymentsRuntimePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>name</value>
      <value>state</value>
      <value>health</value>
      <value>type</value>
      <value>targets</value>
      <value>scope</value>
      <value>partition</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
  <portlet-preference definitionLabel="JmsBridgedestinationJMSBridgeDestinationTablePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="Name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>Name</value>
      <value>AdapterJndiName</value>
      <value>ScopeName</value>
      <value>Partitions</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
  <portlet-preference definitionLabel="GlobalJDBCDataSourceMonitorTablePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="Name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>Name</value>
      <value>dataSourceType</value>
      <value>Resource</value>
      <value>DataSourceScope</value>
      <value>server</value>
      <value>State</value>
      <value>ActiveConnectionsAverageCount</value>
      <value>ActiveConnectionsCurrentCount</value>
      <value>ActiveConnectionsHighCount</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
  <portlet-preference definitionLabel="JMSSystemModuleConfigGeneralPortlet" user="weblogic">
    <preference name="[moduleresources]filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
    <preference name="[moduleresources]rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="[moduleresources]maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="[moduleresources]filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="Name"/>
    <preference name="[moduleresources]selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>Name</value>
      <value>Type</value>
      <value>JndiName</value>
      <value>SubDeploymentName</value>
      <value>Targets</value>
    </preference>
  </portlet-preference>
  <portlet-preference definitionLabel="GlobalJDBCDataSourceTablePortlet" user="weblogic">
    <preference name="filterByColumn" description="The description" isModifiable="true" isMultivalued="false" value="Name"/>
    <preference name="maxrows" description="The description" isModifiable="true" isMultivalued="false" value="All"/>
    <preference name="selectedColumns" description="The description" isModifiable="true" isMultivalued="true">
      <value>Name</value>
      <value>DataSourceType</value>
      <value>JndiName</value>
      <value>Targets</value>
      <value>DisplayScopeName</value>
      <value>Partitions</value>
    </preference>
    <preference name="rowsperpage" description="The description" isModifiable="true" isMultivalued="false" value="5000"/>
    <preference name="filterByCriteria" description="The description" isModifiable="true" isMultivalued="false" value=""/>
  </portlet-preference>
</portlet-preferences>