public class XmlJmsBrowserSender extends SenderWithParametersBase
When input root element is browse
all queue messages are returned.
When input root element is remove
all queue messages are removed.
example (input):
<browse>
<jmsRealm>qcf</jmsRealm>
<destinationName>jms/GetPolicyDetailsRequest</destinationName>
<destinationType>QUEUE</destinationType>
</browse>
example (browse output):
<result>
<items count="2">
<item>
<timestamp>Thu Nov 20 13:36:31 CET 2014</timestamp>
<messageId>ID:LPAB00000003980-61959-1416486781822-3:5:33:1:1</messageId>
<correlationId>...</correlationId>
<message><![CDATA[...]]></message>
</item>
<item>
<timestamp>Thu Dec 12 11:59:22 CET 2014</timestamp>
<messageId>ID:LPAB00000003980-58359-1721486799722-3:4:19:1:1</messageId>
<correlationId>...</correlationId>
<message><![CDATA[...]]></message>
</item>
</items>
</result>
example (remove output):
<result>
<itemsRemoved>2</itemsRemoved>
</result>
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
XmlJmsBrowserSender() |
Modifier and Type | Method and Description |
---|---|
JmsBrowser<javax.jms.Message> |
createJmsBrowser() |
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Send a message to some destination (as configured in the Sender object).
|
addParameter, checkStringAttributeOrParameter, configure, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
close, createBean, getLogPrefix, getName, isSynchronous, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isSynchronous, open, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
public JmsBrowser<javax.jms.Message> createJmsBrowser()
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
ISender
configure()
method is called.
The following table shows the difference between synchronous and a-synchronous senders:
synchronous | a-synchronous | |
---|---|---|
ISender.isSynchronous() returns | true | false |
return value of sendMessage() is | the reply-message | the messageId of the message sent |
the correlationID specified with sendMessage() | may be ignored | is sent with the message |
a {link TimeOutException} | may be thrown if a timeout occurs waiting for a reply | should not be expected |
Multiple objects may try to call this method at the same time, from different threads.
Implementations of this method should therefore be thread-safe, or synchronized
.
SenderException
TimeoutException
Copyright © 2023 Frank!Framework. All rights reserved.