+

Search Tips   |   Advanced Search

Portlet container custom properties

We can configure name-value pairs of data, where the name is a property key and the value is a string value that we can use to set internal system configuration properties. Defining a new property enables you to configure a setting beyond that which is available in the console. The following is a list of the available Portlet container custom properties.

To specify Portlet container custom properties:

  1. In the console click Servers > Server Types > WebSphere application servers > server_name > Portlet Container Settings > Portlet container.

  2. Under Additional Properties select Custom Properties.

  3. On the Custom Properties page, click New.

  4. On the settings page, enter the name of the custom property to configure in the Name field and the value to set it to in the Value field.

  5. Click Apply or OK.

  6. Click Save on the console task bar to save the configuration changes.

  7. Restart the server.

We can use the custom properties page to define the following portlet container custom properties:


useShortMBeanNames

Portlet MBeans are registered by both their short name and full name. To enable the use of short MBean names for Portlet and PortletApplication MBeans, create the following name-value pair:

Name Value
useShortMBeanNames true

The default is false.

MBeans registered by the full identifiable name, have the following format:

<ApplicationName>#<WARfilename.war>_portlet.<portlet_name> for the Portlet MBean
<ApplicationName>#<WARfilename.war>_portlet for the PortletApplication MBean
where <..> is replaced by the corresponding application data. For example, SampleApplication#SamplePortlet.war_portlet.SamplePortlet.


Related tasks

  • Task overview: Managing portlets

  • Portlet and PortletApplication MBeans