Class JMSUtil
java.lang.Object
org.apache.cxf.transport.jms.util.JMSUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionconvertJmsException(jakarta.jms.JMSException e) static jakarta.jms.MessagecreateAndSetPayload(Object payload, jakarta.jms.Session session, String messageType) Create a JMS of the appropriate type populated with the given payload.static StringcreateCorrelationId(String prefix, long sequenceNum) static jakarta.jms.QueuecreateQueue(jakarta.jms.Connection connection, String name) static jakarta.jms.Messagereceive(jakarta.jms.Session session, jakarta.jms.Destination replyToDestination, String correlationId, long receiveTimeout, boolean pubSubNoLocal) static jakarta.jms.Messagereceive(jakarta.jms.Session session, jakarta.jms.Destination replyToDestination, String correlationId, long receiveTimeout, boolean pubSubNoLocal, org.apache.cxf.message.Exchange exchange)
-
Field Details
-
JMS_MESSAGE_CONSUMER
- See Also:
-
JMS_IGNORE_TIMEOUT
- See Also:
-
-
Method Details
-
receive
public static jakarta.jms.Message receive(jakarta.jms.Session session, jakarta.jms.Destination replyToDestination, String correlationId, long receiveTimeout, boolean pubSubNoLocal) -
receive
public static jakarta.jms.Message receive(jakarta.jms.Session session, jakarta.jms.Destination replyToDestination, String correlationId, long receiveTimeout, boolean pubSubNoLocal, org.apache.cxf.message.Exchange exchange) -
convertJmsException
-
createCorrelationId
-
createAndSetPayload
public static jakarta.jms.Message createAndSetPayload(Object payload, jakarta.jms.Session session, String messageType) throws jakarta.jms.JMSException Create a JMS of the appropriate type populated with the given payload.- Parameters:
payload- the message payload, expected to be either of type String or byte[] depending on payload typesession- the JMS sessionmessageType- the JMS message type- Returns:
- a JMS of the appropriate type populated with the given payload
- Throws:
jakarta.jms.JMSException
-
createQueue
public static jakarta.jms.Queue createQueue(jakarta.jms.Connection connection, String name) throws jakarta.jms.JMSException - Throws:
jakarta.jms.JMSException
-