예제 #1
0
 public void SendTextMessage(string message)
 {
     jolokiaSession.Request(new Dictionary <string, object>
     {
         ["type"]      = "exec",
         ["mbean"]     = queueBean,
         ["operation"] = "sendTextMessage(java.lang.String)",
         ["arguments"] = new List <string> {
             message
         }
     });
 }
 public RemoteJmxQueue AddQueue(string queueName)
 {
     jolokiaSession.Request(new Dictionary <string, object>
     {
         ["type"]      = "exec",
         ["mbean"]     = $"org.apache.activemq:type=Broker,brokerName={brokerName}",
         ["operation"] = "addQueue",
         ["arguments"] = new List <string> {
             queueName
         }
     });
     return(new RemoteJmxQueue(jolokiaSession, brokerName, queueName));
 }