public class JMSManagementHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
getResult(jakarta.jms.Message message)
Returns the result of an operation invocation or an attribute value.
|
static Object |
getResult(jakarta.jms.Message message,
Class desiredType)
Returns the result of an operation invocation or an attribute value.
|
static Object[] |
getResults(jakarta.jms.Message message)
Returns the result of an operation invocation or an attribute value.
|
static boolean |
hasOperationSucceeded(jakarta.jms.Message message)
Returns whether the invocation of the management operation on the server resource succeeded.
|
static boolean |
isAttributesResult(jakarta.jms.Message message)
Returns whether the JMS message corresponds to the result of a management attribute value.
|
static boolean |
isOperationResult(jakarta.jms.Message message)
Returns whether the JMS message corresponds to the result of a management operation invocation.
|
static void |
putAttribute(jakarta.jms.Message message,
String resourceName,
String attribute)
Stores a resource attribute in a JMS message to retrieve the value from the server resource.
|
static void |
putOperationInvocation(jakarta.jms.Message message,
String resourceName,
String operationName)
Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
|
static void |
putOperationInvocation(jakarta.jms.Message message,
String resourceName,
String operationName,
Object... parameters)
Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
|
public static void putAttribute(jakarta.jms.Message message,
String resourceName,
String attribute)
throws jakarta.jms.JMSException
message - JMS messageresourceName - the name of the resourceattribute - the name of the attributejakarta.jms.JMSException - if an exception occurs while putting the information in the messageResourceNamespublic static void putOperationInvocation(jakarta.jms.Message message,
String resourceName,
String operationName)
throws jakarta.jms.JMSException
message - JMS messageresourceName - the name of the resourceoperationName - the name of the operation to invoke on the resourcejakarta.jms.JMSException - if an exception occurs while putting the information in the messageResourceNamespublic static void putOperationInvocation(jakarta.jms.Message message,
String resourceName,
String operationName,
Object... parameters)
throws jakarta.jms.JMSException
message - JMS messageresourceName - the name of the server resourceoperationName - the name of the operation to invoke on the server resourceparameters - the parameters to use to invoke the server resourcejakarta.jms.JMSException - if an exception occurs while putting the information in the messageResourceNamespublic static boolean isOperationResult(jakarta.jms.Message message)
throws jakarta.jms.JMSException
jakarta.jms.JMSExceptionpublic static boolean isAttributesResult(jakarta.jms.Message message)
throws jakarta.jms.JMSException
jakarta.jms.JMSExceptionpublic static boolean hasOperationSucceeded(jakarta.jms.Message message)
throws jakarta.jms.JMSException
jakarta.jms.JMSExceptionpublic static Object[] getResults(jakarta.jms.Message message) throws Exception
hasOperationSucceeded(Message) will return false.
and the result will be a String corresponding to the server exception.Exceptionpublic static Object getResult(jakarta.jms.Message message) throws Exception
hasOperationSucceeded(Message) will return false.
and the result will be a String corresponding to the server exception.Exceptionpublic static Object getResult(jakarta.jms.Message message, Class desiredType) throws Exception
hasOperationSucceeded(Message) will return false.
and the result will be a String corresponding to the server exception.ExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.