{
MBeanOperationInfo[] ops = new MBeanOperationInfo[3];
MBeanParameterInfo[] createActivationSpecParams = new MBeanParameterInfo[]
{
new MBeanParameterInfo("MessagingType", Class.class.getName(), "The type of the message listener"),
new MBeanParameterInfo("ActivationConfig", Collection.class.getName(), "A collection of activation config properties")
};
ops[0] = new MBeanOperationInfo("createActivationSpec", "Create an activation spec",
createActivationSpecParams, ActivationSpec.class.getName(), MBeanOperationInfo.ACTION);
MBeanParameterInfo[] activationParams = new MBeanParameterInfo[]
{
new MBeanParameterInfo("MessageEndpointFactory", MessageEndpointFactory.class.getName(), "The message endpoint factory"),
new MBeanParameterInfo("ActivationSpec", ActivationSpec.class.getName(), "The activation spec")
};
ops[1] = new MBeanOperationInfo("endpointActivation", "Active the endpoint",
activationParams, Void.class.getName(), MBeanOperationInfo.ACTION);
ops[2] = new MBeanOperationInfo("endpointDeactivation", "Deactive the endpoint",
activationParams, Void.class.getName(), MBeanOperationInfo.ACTION);