Can a JBoss ON plug-in use or implement overloaded operations?
Issue
- Handling duplicate management bean (MBean) operations
- How do I configure method or operation overloading?
-
The agent is throwing the following exception for overloaded methods:
ERROR [org.rhq.core.clientapi.descriptor.AgentPluginDescriptorUtil] Validation fatal error while parsing [my-customer-plugin.jar:META-INF/rhq-plugin.xml] at line 79, column 154: cvc-identity-constraint.4.1: Duplicate unique value [deleteRequests] declared for identity constraint "service-operation" of element "service".
-
Can operations be overloaded?
Environment
- JBoss Operations Network (JON) 3.1.2
- JBoss ON agent plug-in development
- One or more methods to be invoked by an operation for a single resource type contain the same name but with a different number of parameters or parameter types.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.