| org.apache.beehive.controls.system.jms.JMSControl
All known Subclasses: org.apache.beehive.controls.system.jms.impl.JMSControlImpl,
JMSControl | public interface JMSControl (Code) | | The control interface for the jms control.
|
Inner Class : enum DestinationType | |
Inner Class : enum HeaderType | |
Inner Class : enum MessageType | |
Inner Class : enum DeliveryMode | |
Inner Class : enum AcknowledgeMode | |
Inner Class :public @interface Message | |
Inner Class :public @interface Property | |
Inner Class :public @interface PropertyValue | |
Inner Class :public @interface Priority | |
Inner Class :public @interface Type | |
Inner Class :public @interface CorrelationId | |
Inner Class :public @interface Expiration | |
Inner Class :public @interface Delivery | |
Inner Class :public @interface Properties | |
Inner Class :public @interface Destination | |
Method Summary | |
public javax.jms.Connection | getConnection() Get the
javax.jms.Connection . | public javax.jms.Destination | getDestination() Get the
javax.jms.Destination . | public Session | getSession() Get the
Session . | public void | setHeader(JMSControl.HeaderType type, Object value) Sets a JMS header to be assigned to the next JMS message
sent. | public void | setHeaders(Map headers) Sets the JMS headers to be assigned to the next JMS message
sent. | public void | setProperties(Map properties) Sets the JMS properties to be assigned to the next JMS message
sent. | public void | setProperty(String name, Object value) Set the given JMS property to be assigned to the next JMS message sent. |
HEADER_CORRELATIONID | final public static String HEADER_CORRELATIONID(Code) | | Indicates the JMSCorrelationID message header.
See Also: HeaderType.JMSCorrelationID |
HEADER_DELIVERYMODE | final public static String HEADER_DELIVERYMODE(Code) | | Indicates the JMSDeliveryMode message header.
See Also: HeaderType.JMSDeliveryMode |
HEADER_EXPIRATION | final public static String HEADER_EXPIRATION(Code) | | Indicates the JMSExpiration message header.
Use with the getHeaders and setHeaders methods.
See Also: HeaderType.JMSExpiration |
HEADER_MESSAGEID | final public static String HEADER_MESSAGEID(Code) | | Indicates the JMSMessageID message header.
See Also: HeaderType.JMSMessageID |
HEADER_PRIORITY | final public static String HEADER_PRIORITY(Code) | | Indicates the JMSPriority message header.
See Also: HeaderType.JMSPriority |
HEADER_REDELIVERED | final public static String HEADER_REDELIVERED(Code) | | Indicates the JMSRedelivered message header.
See Also: HeaderType.JMSRedelivered |
HEADER_TIMESTAMP | final public static String HEADER_TIMESTAMP(Code) | | Indicates the JMSTimestamp message header.
See Also: HeaderType.JMSTimestamp |
HEADER_TYPE | final public static String HEADER_TYPE(Code) | | Indicates the JMSType message header.
See Also: HeaderType.JMSType |
getConnection | public javax.jms.Connection getConnection() throws ControlException(Code) | | Get the
javax.jms.Connection .
the connection. |
getDestination | public javax.jms.Destination getDestination() throws ControlException(Code) | | Get the
javax.jms.Destination .
an instance destination object. |
setHeader | public void setHeader(JMSControl.HeaderType type, Object value)(Code) | | Sets a JMS header to be assigned to the next JMS message
sent. Note that this headers is set only on the next message,
subsequent messages will not get this header. Also note that
if the body is a message itself,
then the header set here will override the header set
in the message.
Parameters: type - the header type. Parameters: value - the value for the header. |
setHeaders | public void setHeaders(Map headers)(Code) | | 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 body is a message itself,
then any header set through this map will override headers set
in the message.
Parameters: headers - A map of header names (Strings or HeaderType) to header values. |
setProperties | public void setProperties(Map properties)(Code) | | 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.
Parameters: properties - A map of property names (Strings) to propertyvalues. |
setProperty | public void setProperty(String name, Object value)(Code) | | Set the given JMS property to be assigned to the next JMS message sent. Note that
this property is set only on the next message, subsequent messages will not get this
property. Also note that if the body is a message itself, then the property set here
will override the property set in the message.
Parameters: name - the property name. Parameters: value - the property value. |
|
|