|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.services.messaging.adapters.JMSSettings
public class JMSSettings
Settings for JMSAdapter.
| Nested Class Summary | |
|---|---|
static class |
JMSSettings.DeliverySettings
A static inner class for delivery settings. |
| Constructor Summary | |
|---|---|
JMSSettings()
Creates a JMSSettings instance with the following default
values: acknowledge mode of AUTO_ACKNOWLEDGE, delivery mode of
DEFAULT_DELIVERY_MODE, destination type of Topic, and default
delivery setting. |
|
| Method Summary | |
|---|---|
String |
getAcknowledgeMode()
Returns the acknowledge-mode property. |
String |
getConnectionFactory()
Returns the connection-factory property. |
String |
getConnectionPassword()
Returns the connection password used while creating JMS connections. |
String |
getConnectionUsername()
Returns the connection username used while creating JMS connections. |
String |
getDeliveryMode()
Returns the delivery-mode property. |
JMSSettings.DeliverySettings |
getDeliverySettings()
Returns the delivery-settings property. |
String |
getDestinationJNDIName()
Returns the destination-jndi-name property. |
String |
getDestinationName()
Deprecated. |
String |
getDestinationType()
Returns the destination-type property. |
Hashtable |
getInitialContextEnvironment()
Returns the initial-context-environment property. |
int |
getMaxProducers()
Returns the max-producers property. |
int |
getMessagePriority()
Returns the message-priority property. |
String |
getMessageType()
Returns the message-type property. |
boolean |
isPreserveJMSHeaders()
Returns the preserve-jms-headers property. |
boolean |
isTransactedSessions()
Deprecated. |
void |
setAcknowledgeMode(String mode)
Sets the acknowledge-mode property which is the message
acknowledgement mode for the JMS adapter. |
void |
setConnectionFactory(String factory)
Sets the connection-factory property which is the name of
the JMS connection factory in JNDI. |
void |
setConnectionPassword(String connectionPassword)
Sets the connection password used while creating JMS connections. |
void |
setConnectionUsername(String connectionUsername)
Sets the connection username used while creating JMS connections. |
void |
setDeliveryMode(String mode)
Sets the delivery-mode property which is the JMS DeliveryMode
for producers. |
void |
setDeliverySettings(JMSSettings.DeliverySettings deliverySettings)
Sets the delivery-settings property. |
void |
setDestinationJNDIName(String name)
Sets the destination-jndi-name property which is the name of
the destination in JNDI. |
void |
setDestinationName(String name)
Deprecated. |
void |
setDestinationType(String type)
Sets the destination-type property which determines whether
the adapter is performing topic (pub/sub) or queue (point-to-point)
messaging. |
void |
setDurableConsumers(boolean durable)
Sets whethers consumers are durable or not. |
void |
setInitialContextEnvironment(Hashtable env)
Sets the initial-context-environment property. |
void |
setMaxProducers(int value)
Sets the max-producers property which is the maximum number
of producer proxies that this destination should use when communicating
with the JMS Server. |
void |
setMessagePriority(int priority)
Sets the message-priority property which is the JMS priority
for messages sent by Flex producers. |
void |
setMessageType(String type)
Sets the message-type property which is the
javax.jms.Message type which the adapter should use for the
destination. |
void |
setPreserveJMSHeaders(boolean preserveJMSHeaders)
Sets the preserve-jms-headers property. |
void |
setTransactedSessions(boolean mode)
Deprecated. |
boolean |
useDurableConsumers()
Returns whether consumers are durable or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSSettings()
JMSSettings instance with the following default
values: acknowledge mode of AUTO_ACKNOWLEDGE, delivery mode of
DEFAULT_DELIVERY_MODE, destination type of Topic, and default
delivery setting.
| Method Detail |
|---|
public String getAcknowledgeMode()
acknowledge-mode property.
acknowledge-modepublic void setAcknowledgeMode(String mode)
acknowledge-mode property which is the message
acknowledgement mode for the JMS adapter. None of these modes require any
action on the part of the Flex messaging client. This property is optional
and defautls to AUTO_ACKNOWLEDGE.
mode - Message acknowledgement mode. Supported modes are:
AUTO_ACKNOWLEDGE - the JMS provider client runtime automatically acknowledges the messages.
DUPS_OK_ACKNOWLEDGE - auto-acknowledgement of the messages is not required.
CLIENT_ACKNOWLEDGE - the JMS adapter should acknowledge that the message was received.public String getConnectionFactory()
connection-factory property.
connection-factory.public void setConnectionFactory(String factory)
connection-factory property which is the name of
the JMS connection factory in JNDI. This property is required and it
cannot be null.
factory - The non-null name of the JMS connection factory.public String getConnectionUsername()
public void setConnectionUsername(String connectionUsername)
connectionUsername - The connection username used while creating JMS connections.public String getConnectionPassword()
public void setConnectionPassword(String connectionPassword)
connectionPassword - The connection password used while creating JMS connections.public String getDeliveryMode()
delivery-mode property.
delivery-mode.public void setDeliveryMode(String mode)
delivery-mode property which is the JMS DeliveryMode
for producers. This property optional and defaults to DEFAULT_DELIVERY_MODE.
mode - The delivery mode. Valid values are DEFAULT_DELIVERY_MODE,
PERSISTENT, and NON_PERSISTENT.public JMSSettings.DeliverySettings getDeliverySettings()
delivery-settings property.
delivery-settings property.public void setDeliverySettings(JMSSettings.DeliverySettings deliverySettings)
delivery-settings property. This property is
optional and defaults to default settings as described in
DeliverySettings inner class.
deliverySettings - The delivery-settings property.public String getDestinationJNDIName()
destination-jndi-name property.
destination-jndi-namepublic void setDestinationJNDIName(String name)
destination-jndi-name property which is the name of
the destination in JNDI. This value is required and it cannot be null.
name - The non-null name of the destination in JNDI.public String getDestinationName()
public void setDestinationName(String name)
name - The name of the destination.public String getDestinationType()
destination-type property.
destination-type.public void setDestinationType(String type)
destination-type property which determines whether
the adapter is performing topic (pub/sub) or queue (point-to-point)
messaging. This element is optional and defaults to Topic.
type - The destination type. Valid values are Topic and Queue.public boolean useDurableConsumers()
true is consumers are durable, false
otherwise.public void setDurableConsumers(boolean durable)
durable - A boolean indicating whether consumers should be durable.public Hashtable getInitialContextEnvironment()
initial-context-environment property.
initial-context-environment.public void setInitialContextEnvironment(Hashtable env)
initial-context-environment property. This property
is optional.
env - A Hashtable of the initial-context-environment.public int getMaxProducers()
max-producers property.
max-producers.public void setMaxProducers(int value)
max-producers property which is the maximum number
of producer proxies that this destination should use when communicating
with the JMS Server. This property is optional and defaults to 1 which
implies all clients using this destinatin will share the same connection
to the JMS server.
value - an int representing the max-producers.public int getMessagePriority()
message-priority property.
message-prioritypublic void setMessagePriority(int priority)
message-priority property which is the JMS priority
for messages sent by Flex producers. This property is optional and
defaults to javax.jms.Message.DEFAULT_PRIORITY.
priority - an int specifying the message-priority.public String getMessageType()
message-type property.
message-type.public void setMessageType(String type)
message-type property which is the
javax.jms.Message type which the adapter should use for the
destination.
type - The message-type property. Supported types are
javax.jms.TextMessage, javax.jms.ObjectMessage.public boolean isPreserveJMSHeaders()
preserve-jms-headers property.
preserve-jms-headers property.public void setPreserveJMSHeaders(boolean preserveJMSHeaders)
preserve-jms-headers property. This property is
optional and defaults to true.
preserveJMSHeaders - The preserve-jms-headers property.public boolean isTransactedSessions()
public void setTransactedSessions(boolean mode)
mode - The transacted-session property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/messaging/adapters/JMSSettings.html