WebSphere Extended Deployment, Version 6.0.x
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


Application name and session EJB

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.

  1. Run wpfadmin setEJBName WPFKeyBasedPartitionSample#NonExistentSessionBean --id 1. Notice NonExistentSessionBean EJB does not exist in the application.
  2. Wait for 60 seconds, and retrieve the statistics by executing wpfadmin getResponseTime --id 1. You will not see any statistics as expected.
  3. Run wpfadmin setEJBName WPFKeyBasedPartitionSample#WPFKeyBasedPartition --id 1
  4. Wait for 60 seconds, and retrieve the statistics by executing wpfadmin getResponseTime --id 1. You will see the statistics again.



Related concepts
Partitioning facility PMI statistics parameters
Reference topic    

Terms of Use | Feedback

Last updated: Oct 16, 2009 11:11:31 AM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/WPF51/rwpfappejb.html