Partitions are grouped by the application name and the session
Enterprise JavaBeans (EJB) name. When subscribing the partitioning facility
PMI statistics, users have to specify the application name and the session
EJB name.
Users can use the following command to set the EJB name and the
application name for one PMI subscription.
wpfadmin.bat|wpfadmin setEJBName EJB_NAME [--a APPLICATION_NAME] --id PMI_SUBSCRIPTION_ID
-a is used to specify the application name.
You can choose
to use a fully qualified EJB name or not. For example, if users want to change
the EJB name to session2 and application name to app2, you can execute either
of the following commands:
- ./wpfadmin setEJBName app2#session2 --id 1
- ./wpfadmin set EJBName session2 --a app2 --id 1
Users can also use Java code, jacl script, or jython script to
get the com.ibm.websphere.wpf.jmx.WPFJMX MBean instance, and change
the statistics type via the MBean.
- Run wpfadmin setEJBName WPFKeyBasedPartitionSample#NonExistentSessionBean
--id 1. Notice NonExistentSessionBean EJB does not exist in the application.
- Wait for 60 seconds, and retrieve the statistics by executing wpfadmin
getResponseTime --id 1. You will not see any statistics as expected.
- Run wpfadmin setEJBName WPFKeyBasedPartitionSample#WPFKeyBasedPartition
--id 1
- Wait for 60 seconds, and retrieve the statistics by executing wpfadmin
getResponseTime --id 1. You will see the statistics again.