flex.messaging.services.messaging.adapters
Class JMSSettings

java.lang.Object
  extended by flex.messaging.services.messaging.adapters.JMSSettings

public class JMSSettings
extends Object


Constructor Summary
JMSSettings()
          Creates a default JMSSettings instance.
 
Method Summary
 String getAcknowledgeMode()
          Returns the acknowledge-mode property.
 String getConnectionFactory()
          Returns the connection-factory property.
 String getDeliveryMode()
          Returns the delivery-mode property.
 String getDestinationJNDIName()
          Returns the destination-jndi-name property.
 String getDestinationName()
          Returns the destination-name property.
 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 isTransactedSessions()
          Returns the transacted-sessions property.
 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 setDeliveryMode(String mode)
          Sets the delivery-mode property which is the JMS DeliveryMode for producers.
 void setDestinationJNDIName(String name)
          Sets the destination-jndi-name property which is the name of the destination in JNDI.
 void setDestinationName(String name)
          Sets the destination-name property which is the name of the destination in JMS.
 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)
           
 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 Flash 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 setTransactedSessions(boolean mode)
          Sets the transacted-sessions property which is the JMS session transaction mode.
 boolean useDurableConsumers()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSSettings

public JMSSettings()
Creates a default JMSSettings instance.

Method Detail

getDestinationType

public String getDestinationType()
Returns the destination-type property.

Returns:

setDestinationType

public 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. This element is optional and defaults to Topic.

Parameters:
type -

getMessageType

public String getMessageType()
Returns the message-type property.

Returns:

setMessageType

public void setMessageType(String type)
Sets the message-type property which is the javax.jms.Message type which the adapter should use for the destination. Supported types are: javax.jms.TextMessage, javax.jms.ObjectMessage.

Parameters:
type -

getConnectionFactory

public String getConnectionFactory()
Returns the connection-factory property.

Returns:

setConnectionFactory

public void setConnectionFactory(String factory)
Sets the connection-factory property which is the name of the JMS connection factory in JNDI.

Parameters:
factory -

getDestinationJNDIName

public String getDestinationJNDIName()
Returns the destination-jndi-name property.

Returns:

setDestinationJNDIName

public void setDestinationJNDIName(String name)
Sets the destination-jndi-name property which is the name of the destination in JNDI.

Parameters:
name -

getDestinationName

public String getDestinationName()
Returns the destination-name property.

Returns:

setDestinationName

public void setDestinationName(String name)
Sets the destination-name property which is the name of the destination in JMS. This element is optional and defaults to the destination id.

Parameters:
name -

useDurableConsumers

public boolean useDurableConsumers()

setDurableConsumers

public void setDurableConsumers(boolean durable)

getDeliveryMode

public String getDeliveryMode()
Returns the delivery-mode property.

Returns:

setDeliveryMode

public void setDeliveryMode(String mode)
Sets the delivery-mode property which is the JMS DeliveryMode for producers.

Parameters:
mode -

getMessagePriority

public int getMessagePriority()
Returns the message-priority property.

Returns:

setMessagePriority

public void setMessagePriority(int priority)
Sets the message-priority property which is the JMS priority for messages sent by Flash producers.

Parameters:
priority -

getAcknowledgeMode

public String getAcknowledgeMode()
Returns the acknowledge-mode property.

Returns:

setAcknowledgeMode

public void setAcknowledgeMode(String mode)
Sets the 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. Supported modes: 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

Parameters:
mode -

isTransactedSessions

public boolean isTransactedSessions()
Returns the transacted-sessions property.

Returns:

setTransactedSessions

public void setTransactedSessions(boolean mode)
Sets the transacted-sessions property which is the JMS session transaction mode. Default value is false.

Parameters:
mode -

getMaxProducers

public int getMaxProducers()
Returns the max-producers property.

Returns:

setMaxProducers

public 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. The default is 1 which implies all clients using this destinatin will share the same connection to the JMS server.

Parameters:
value -

getInitialContextEnvironment

public Hashtable getInitialContextEnvironment()
Returns the initial-context-environment property.

Returns:

setInitialContextEnvironment

public void setInitialContextEnvironment(Hashtable env)
Sets the initial-context-environment property.

Parameters:
env -


Copyright © 2007 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/services/messaging/adapters/JMSSettings.html