[
http://jira.jboss.com/jira/browse/JBREM-746?page=all ]
John Mazzitelli updated JBREM-746:
----------------------------------
Attachment: ServerInvokerServlet.patch
attached is a patch to ServerInvokerServlet.
If the web.xml for the remoting war has the init param of "mbeanServer" set, it
will be used to identify which MBeanServer to use. If that is not set, it assumes a
value of "jboss".
If mbeanServer init param is "*platform*", it will use the platform MBeanServer
(ManagementFactory.getPlatformMBeanServer()). Otherwise, the name will be assumed to be a
default domain for an existing MBeanServer that can be found via MbeanServerFactory.
This is backwards compatible because if that init param doesn't even exist, it will
default to "jboss" which is what was looked up in previous versions.
need to be able to tell ServerInvokerServlet to use the platform
MBean server
-----------------------------------------------------------------------------
Key: JBREM-746
URL:
http://jira.jboss.com/jira/browse/JBREM-746
Project: JBoss Remoting
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 2.2.0.SP4
Reporter: John Mazzitelli
Assigned To: Ron Sigal
Attachments: ServerInvokerServlet.patch
Right now, ServerInvokerServlet assumes the MBeanServer where it can find the server
invoker is the JBoss MBeanServer.
See the comments in ServerInvokerServlet.getMBeanServer()
It would be nice to be able to tell it to not use the MBeanServer whose default domain is
"jboss", but rather we should be able to tell it (via servlet init params)
either:
a) the name of the MBeanServer's default domain (in case I want to use my own, not
the jboss one)
or
b) a flag to indicate it should use the Java5 platform MBeanServer
(java.lang.management.ManagementFactory.getPlatformMBeanServer())
Workaround is for customers to write their own subclass of ServerInvokerServlet, override
the getMBeanServer method to find the appropriate one.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira