Liking cljdoc? Tell your friends :D

lupapiste-jms.client

Thin Clojure wrapper for JMS client-side usage.

Thin Clojure wrapper for JMS client-side usage.
raw docstring

byte-message-as-arrayclj

(byte-message-as-array m)
source

byte-message-producerclj

(byte-message-producer session producer)

Creates producer function, which sends given bytes data as a ByteMessage to producer's destination.

Creates producer function, which sends given bytes data as a ByteMessage to producer's destination.
sourceraw docstring

commitclj

(commit session)
source

create-connectionclj

(create-connection connection-factory)
(create-connection connection-factory {:keys [username password ex-listener]})

Creates connection to given connection factory. Doesn't start the connection. Options map: - :username - :password - :ex-listener - sets exception listener for connection, see exception-listener.

Creates connection to given connection factory. Doesn't start the connection.
Options map:
      - :username
      - :password
      - :ex-listener - sets exception listener for connection, see exception-listener.
sourceraw docstring

create-consumerclj

(create-consumer session destination)
source

create-contextclj

(create-context cf)
(create-context cf
                {:keys [session-mode username password ex-listener]
                 :or {session-mode JMSContext/AUTO_ACKNOWLEDGE}})

Creates JMSContext (JMS 2.0). Optional parameters as map:

  • :username
  • :password
  • :session-mode (see JMSContext API docs)
  • :ex-listener (ExceptionListener)
Creates JMSContext (JMS 2.0).
Optional parameters as map:
   - :username
   - :password
   - :session-mode (see JMSContext API docs)
   - :ex-listener (ExceptionListener)
sourceraw docstring

create-jms-producerclj

(create-jms-producer ctx)
(create-jms-producer ctx
                     {:keys [delivery-mode delivery-delay ttl correlation-id
                             reply-to]})

Creates JMS 2.0 defined JMSProducer. Optional parameters as map:

  • :delivery-mode
  • :delivery-delay
  • :ttl
  • :correlation-id
  • :reply-to
Creates JMS 2.0 defined JMSProducer.
Optional parameters as map:
   - :delivery-mode
   - :delivery-delay
   - :ttl
   - :correlation-id
   - :reply-to
sourceraw docstring

create-producerclj

(create-producer session destination)

Creates message producer for given destination (JMS 1.1)

Creates message producer for given destination (JMS 1.1)
sourceraw docstring

create-queueclj

(create-queue session name)
source

create-sessionclj

(create-session conn)
(create-session conn session-mode)

JMS 2.0 spec'd session creator.

JMS 2.0 spec'd session creator.
sourceraw docstring

create-topicclj

(create-topic session name)
source

create-transacted-sessionclj

(create-transacted-session conn)
source

exception-listenerclj

(exception-listener listener-fn)

Implements ExceptionListener. Passes exception to given listener-fn.

Implements ExceptionListener. Passes exception to given listener-fn.
sourceraw docstring

listenclj

(listen session destination listener-fn)

Start consuming destination with listener-fn, which can be a Clojure function or instance of javax.jms.MessageListener. Returns created consumer.

Start consuming destination with listener-fn, which can be a Clojure function or instance of javax.jms.MessageListener.
Returns created consumer.
sourceraw docstring

message-listenerclj

(message-listener cb)

Creates a MessageListener instance. Given callback function is fed with message-content of javax.jms.Message.

Creates a MessageListener instance. Given callback function is fed with `message-content` of javax.jms.Message.
sourceraw docstring

MessageContentcljprotocol

message-contentclj

(message-content msg)
source

MessageCreatorcljprotocol

Protocol for creating instance of javax.jms.Message.

Protocol for creating instance of javax.jms.Message.

create-messageclj

(create-message data message-factory)

Create Message depending on type of data.

Create Message depending on type of data.
sourceraw docstring

MessageFactorycljprotocol

Protocol for creating specific javax.jms.Message subtypes.

Protocol for creating specific javax.jms.Message subtypes.

create-byte-messageclj

(create-byte-message factory bytes)

Create a javax.jms.BytesMessage from the byte array.

Create a javax.jms.BytesMessage from the byte array.

create-text-messageclj

(create-text-message factory s)

Create a javax.jms.TextMessage from the String.

Create a javax.jms.TextMessage from the String.
sourceraw docstring

producer-fnclj

(producer-fn producer message-fn)

Returns function that takes one parameter: data to be sent. The data is sent via producer's send method. message-fn is called with raw data to create needed javax.jms.Message. Thus message-fn should create a javax.jms.Message which can be send with producer.

Returns function that takes one parameter: data to be sent.
The data is sent via producer's send method.
message-fn is called with raw data to create needed javax.jms.Message.
Thus message-fn should create a javax.jms.Message which can be send with producer.
sourceraw docstring

rollbackclj

(rollback session)
source

send-with-contextclj

(send-with-context cf dest data & [options-map])

JMS 2.0 style producing. Creates context, sends data to destination and finally closes context. Message is created by default with 'create-message'. 'create-message' function can be extended for other types than String and bytes. Also message creating function can be passed as :message-fn option. That function is invoked with two params: data and the created context. Options map is passed to create-context and create-jms-producer, see them for usable keys.

JMS 2.0 style producing. Creates context, sends data to destination and finally closes context.
Message is created by default with 'create-message'.
'create-message' function can be extended for other types than String and bytes.
Also message creating function can be passed as :message-fn option.
That function is invoked with two params: data and the created context.
Options map is passed to create-context and create-jms-producer, see them for usable keys.
sourceraw docstring

set-listenerclj

(set-listener consumer listener-fn)

Set a MessageListener for consumer. Listener-fn can be instance of MessageListener or a regular Clojure function. For regular function, an MessageListener instance is created and the function is fed with data from javax.jms.Message. Given consumer is returned.

Set a MessageListener for consumer.
Listener-fn can be instance of MessageListener or a regular Clojure function.
For regular function, an MessageListener instance is created and the function is fed with data from javax.jms.Message.
Given consumer is returned.
sourceraw docstring

set-message-propertiesclj

(set-message-properties msg properties)

Sets given properties (a map) into Message. Returns possibly mutated msg.

Sets given properties (a map) into Message.
Returns possibly mutated msg.
sourceraw docstring

text-message-producerclj

(text-message-producer session producer)

Creates producer function, which sends given data as a TextMessage to producer's destination.

Creates producer function, which sends given data as a TextMessage to producer's destination.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close