Skip to content

Messaging

Dannes Wessels edited this page Dec 8, 2013 · 38 revisions

Send message

A JMS message can be sent by calling the jms:send() function with three parameters:

jms:send(
        $content as item(), $jmsMessageProperties as map(*)?, $jmsConfiguration as map(*)
    )
  • $content is the actual data that must be sent. This can be an XML fragment or a XSD type
  • $jmsMessageProperties are additional key-value pairs which can be used as meta-data
  • $jmsConfiguration are the JMS configuration parameters.

Check the complete [example](Example send message) for inspiration.

Receive message

jms:register(
            $callback as function(*), $additionalParameters as item()*, $jmsConfiguration as map(*)
        )
handleMessage(
            $content as item(), $additionalParameters as item()*,  
            $messageProperties as map(*), $jmsConfiguration as map(*)
        )

[Example](Example receive messages)

Manage receivers

jms:list() as xs:string*
jms:report($id as xs:string) as node()
jms:start($id as xs:string)
jms:stop($id as xs:string)
jms:close($id as xs:string)

Clone this wiki locally