61 lines
2.0 KiB
HTML
61 lines
2.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>Example: J2EE security permissions</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h4><a name="jmxexj2ee"></a>Example: J2EE security permissions</h4>
|
|
|
|
<p>
|
|
You must grant J2EE security permissions to application scoped code for JMX and WebSphere Application Server - Express administrative privileges in order to allow the code to call WebSphere Application Server - Express administrative and JMX methods.</p>
|
|
|
|
<p>
|
|
<ul>
|
|
<li><p>To invoke JMX class and interface methods, at least one of the following permissions are required:</p>
|
|
<pre>
|
|
permission com.tivoli.jmx.MBeanServerPermission "MBeanServer.*"
|
|
permission com.tivoli.jmx.MBeanServerPermission "MBeanServerFactory.*"
|
|
where the individual target names are:
|
|
MBeanServer.addNotificationListener
|
|
MBeanServer.createMBean
|
|
MBeanServer.deserialize
|
|
MBeanServer.getAttribute
|
|
MBeanServer.getDefaultDomain
|
|
MBeanServer.getMBeanCount
|
|
MBeanServer.getMBeanInfo
|
|
MBeanServer.getObjectInstance
|
|
MBeanServer.instantiate
|
|
MBeanServer.invoke
|
|
MBeanServer.isRegistered
|
|
MBeanServer.queryMBeans
|
|
MBeanServer.queryNames
|
|
MBeanServer.registerMBean
|
|
MBeanServer.removeNotificationListener
|
|
MBeanServer.setAttribute
|
|
MBeanServer.unregisterMBean
|
|
MBeanServerFactory.createMBeanServer
|
|
MBeanServerFactory.newMBeanServer
|
|
MBeanServerFactory.findMBeanServer
|
|
MBeanServerFactory.releaseMBeanServer
|
|
</pre>
|
|
</li>
|
|
|
|
<li><p>For WebSphere Application Server - Express administrative APIs, the permissions are the following:</p>
|
|
<pre>
|
|
permission com.ibm.websphere.management.AdminPermission "getAdminService"
|
|
permission com.ibm.websphere.management.AdminPermission "getMBeanFactory"
|
|
</pre>
|
|
</li>
|
|
</ul>
|
|
</p>
|
|
|
|
</body>
|
|
</html>
|