|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSControl
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.
Nested Class Summary | |
---|---|
static class |
JMSControl.DeliveryMode
|
static interface |
JMSControl.JMS
|
static interface |
JMSControl.JMSCallBackHeaders
|
static interface |
JMSControl.JmsSend
|
static interface |
JMSControl.JMSSendHeaders
|
static interface |
JMSControl.Properties
The method parameter representing one or more properties. |
static interface |
JMSControl.PropertyValue
|
static interface |
JMSControl.TransactionSetting
|
static class |
JMSControl.Type
|
Nested classes/interfaces inherited from interface com.bea.control.Control |
---|
Control.Callback |
Field Summary | |
---|---|
static String |
HEADER_CORRELATIONID
/** Indicates the JMSCorrelationID message header. |
static String |
HEADER_DELIVERYMODE
Indicates the JMSDeliveryMode message header. |
static String |
HEADER_EXPIRATION
Indicates the JMSExpiration message header. |
static String |
HEADER_MESSAGEID
Indicates the JMSMessageID message header. |
static String |
HEADER_PRIORITY
Indicates the JMSPriority message header. |
static String |
HEADER_REDELIVERED
Indicates the JMSRedelivered message header. |
static String |
HEADER_TIMESTAMP
Indicates the JMSTimestamp message header. |
static String |
HEADER_TYPE
Indicates the JMSType message header. |
Method Summary | |
---|---|
Map |
getHeaders()
Gets the JMS headers of the last message received. |
Map |
getProperties()
Gets the JMS properties of the last message received. |
javax.jms.Session |
getSession()
Returns the JMS session used by this control. |
void |
setHeaders(Map headers)
Sets the JMS headers to be assigned to the next JMS message sent. |
void |
setProperties(Map properties)
Sets the JMS properties to be assigned to the next JMS message sent. |
void |
subscribe()
Indicates that this control is now interested in receiving incoming messages published to the topic. |
void |
unsubscribe()
Indicates that this control is no longer interested in receiving incoming messages published to the topic. |
Field Detail |
---|
static final String HEADER_CORRELATIONID
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_DELIVERYMODE
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_EXPIRATION
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_MESSAGEID
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_PRIORITY
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_REDELIVERED
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_TIMESTAMP
getHeaders()
,
setHeaders(Map)
,
Constant Field Valuesstatic final String HEADER_TYPE
getHeaders()
,
setHeaders(Map)
,
Constant Field ValuesMethod Detail |
---|
javax.jms.Session getSession()
void subscribe()
void unsubscribe()
subscribe()
.
Map getProperties()
null
is
returned. The return value maps property names (Strings) to
property values.
null
if
no message has been received.Map getHeaders()
null
is
returned. The return value maps header names (Strings) to
header values.
null
if no
message has been received.void setProperties(Map properties)
properties
- A map of property names (Strings) to property
values.void setHeaders(Map headers)
headers
- A map of header names (Strings) to header values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |