Simplifies access to the Java Message Service. Use this control
to send and receive JMS messages. Incoming messages are delivered
asynchronously through callbacks.
By default, JMS controls you add to your application will provide
an interface that includes built-in and customizable members. You use
the customizable members to send or publish messages, and to
receive messages through callback handlers.
For more information about using the EJB control, see
JMS Control.
Control
, Serializable
, JMSControl
Field Summary |
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
Method Summary |
public |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
public void |
|
Field Detail |
public static final String
HEADER_CORRELATIONID
Related Topics
public static final String
HEADER_DELIVERYMODE
Related Topics
public static final String
HEADER_EXPIRATION
Related Topics
public static final String
HEADER_MESSAGEID
Related Topics
public static final String
HEADER_PRIORITY
Related Topics
public static final String
HEADER_REDELIVERED
Related Topics
public static final String
HEADER_TIMESTAMP
Related Topics
public static final String
HEADER_TYPE
Related Topics
Method Detail |
public Map
getHeaders()
Gets the JMS headers of the last message received. If no
message has been received then null
is
returned. The return value maps header names (Strings) to
header values.
null
if no
message has been received.
public Map
getProperties()
Gets the JMS properties of the last message received. If no
message has been received then null
is
returned. The return value maps property names (Strings) to
property values.
null
if
no message has been received.
public Session
getSession()
Returns the JMS session used by this control.
public void setHeaders(Map
headers)
Sets the JMS headers to be assigned to the next JMS message
sent. Note that these headers are set only on the next message,
subsequent messages will not get these headers. Also note that
if the next message is sent through a publish method,
then any header set through this map will override headers set
in the message itself.
public void setProperties(Map
properties)
Sets the JMS properties to be assigned to the next JMS message
sent. Note that these properties are set only on the next
message, subsequent messages will not get these
properties. Also note that if the next message is sent through
a publish method, then any property set through this
map will override properties set in the message itself.
public void subscribe()Indicates that this control is now interested in receiving incoming messages published to the topic. Note that when the control is first created it will not receive messages on the topic until it is explicitly requested so.
public void unsubscribe()Indicates that this control is no longer interested in receiving incoming messages published to the topic. This method cancels a subscription previously registered by
JMSControl.subscribe()
.