com.ibm.websphere.management

Class AdminServiceFactory

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.AdminServiceFactory

  1. public class AdminServiceFactory
  2. extends java.lang.Object
This class serves as the Factory for the AdminService instance in each JVM. Its static methods provide an access mechanism for obtaining a reference to the singleton AdminService and also the MBeanFactory.

Code that calls the static methods for this class must be granted AdminPermission or an exception will be thrown if Java 2 Security is enabled. When you assemble the Web Application, you need to add a security constraint for the URI and add a role to the security constraint. When you deploy the application, you can associate a user/group to the role you specified. When you access the URI, you will get prompted, and you must enter a userid/password that is considered an administrative user to access the admin service.


Constructor Summary

Constructor and Description
AdminServiceFactory()

Method Summary

Modifier and Type Method and Description
  1. static
  2. AdminService
getAdminService()
This static method returns the singleton reference to the AdminService instance for this JVM.
  1. static
  2. MBeanFactory
getMBeanFactory()
This static method returns the singleton reference to the MBeanFactory instance for this JVM.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AdminServiceFactory

  1. public AdminServiceFactory()

Method Detail

getAdminService

  1. public static AdminService getAdminService( )
This static method returns the singleton reference to the AdminService instance for this JVM. If this JVM is the admin agent, and top of AdminContext stack is not null, it returns the AdminService instance for the admin subsystem on top of the stack.
See Also:

getMBeanFactory

  1. public static MBeanFactory getMBeanFactory( )
This static method returns the singleton reference to the MBeanFactory instance for this JVM. If this JVM is the admin agent, and top of AdminContext stack is not null, it returns the MBeanFactory instance for the admin subsystem on top of the stack.
See Also: