|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.ServiceAdapter
flex.messaging.services.messaging.adapters.JMSAdapter
public class JMSAdapter
This adapter for the MessageService integrates Flex messaging with Java Message Service destinations.
| Field Summary |
|---|
| Fields inherited from class flex.messaging.services.ServiceAdapter |
|---|
LOG_CATEGORY |
| Fields inherited from interface flex.messaging.services.messaging.adapters.JMSConfigConstants |
|---|
ACKNOWLEDGE_MODE, CONNECTION_FACTORY, DEFAULT_DESTINATION_TYPE, DELIVERY_MODE, DESTINATION_JNDI_NAME, DESTINATION_NAME, DESTINATION_TYPE, MAX_PRODUCERS, MESSAGE_PRIORITY, MESSAGE_TYPE, TIME_TO_LIVE, TRANSACTION_MODE |
| Constructor Summary | |
|---|---|
JMSAdapter()
Constructs an unmanaged JMSAdapter instance. |
|
JMSAdapter(boolean enableManagement)
Constructs a JMSAdapter instance. |
|
| Method Summary | |
|---|---|
AsyncMessage |
convertToFlexMessage(javax.jms.Message jmsMessage,
flex.messaging.services.messaging.adapters.JMSConsumer consumer)
Convert from a javax.jms.Message type to a flex.messaging.messages.AsyncMessage type. |
JMSSettings |
getJMSSettings()
Gets the JMSSettings of the JMSAdapter. |
int |
getQueueConsumerCount()
Returns the count of queue consumers managed by this adapter. |
String[] |
getQueueConsumerIds()
Returns the ids of all queue consumers. |
int |
getQueueProducerCount()
Returns the count of queue producers currently managed by this adapter. |
int |
getTopicConsumerCount()
Returns the count of topic consumers currently managed by this adapter. |
String[] |
getTopicConsumerIds()
Returns the ids of all topic consumers. |
int |
getTopicProducerCount()
Returns the count of topic producers currently managed by this adapter. |
boolean |
handlesSubscriptions()
Returns true if the adapter performs custom subscription management. |
void |
initialize(String id,
ConfigMap properties)
Initializes the JMSAdapter with the properties. |
Object |
invoke(Message message)
Publish a message to this adapter's JMS destination. |
Object |
manage(CommandMessage commandMessage)
Handle a CommandMessage sent by this adapter's service. |
void |
onJmsConnectionException(javax.jms.JMSException e,
flex.messaging.services.messaging.adapters.JMSProxy jmsProxy)
Handle a failure on the javax.jms.Connection used by a JMSConsumer. |
void |
onMessage(javax.jms.Message jmsMessage,
flex.messaging.services.messaging.adapters.JMSConsumer consumer)
Receive a message propagated by a JMSConsumer. |
void |
removeConsumer(String clientId)
Removes (unsubscribes) the specified consumer. |
void |
setDestination(Destination destination)
Casts the Destination into MessageDestination
and calls super.setDestination |
void |
setJMSSettings(JMSSettings jmsSettings)
Sets the JMSSettings of the JMSAdapter. |
void |
stop()
Stops the adapter. |
| Methods inherited from class flex.messaging.services.ServiceAdapter |
|---|
getAdapterState, getDestination, setAdapterState, start |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSAdapter()
JMSAdapter instance.
public JMSAdapter(boolean enableManagement)
JMSAdapter instance.
enableManagement - true if the JMSAdapter has a
corresponding MBean control for management; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
JMSAdapter with the properties.
initialize in interface FlexConfigurableinitialize in class ManageableComponentproperties - Properties for the ServiceAdapter.id - Id of the ManageableComponent.public void stop()
stop in interface FlexComponentstop in class ServiceAdapterpublic void setDestination(Destination destination)
Destination into MessageDestination
and calls super.setDestination
setDestination in class ServiceAdapterdestination - public JMSSettings getJMSSettings()
JMSSettings of the JMSAdapter.
JMSSettings of the JMSAdapter.public void setJMSSettings(JMSSettings jmsSettings)
JMSSettings of the JMSAdapter.
jmsSettings - JMSSettings of the JMSAdapter.public Object invoke(Message message)
invoke in class ServiceAdaptermessage - the message as sent by the client intended for this adapter
Message,
AsyncMessagepublic Object manage(CommandMessage commandMessage)
manage in class ServiceAdapterCommandMessage,
AsyncMessagepublic boolean handlesSubscriptions()
ServiceAdaptertrue if the adapter performs custom subscription management.
The default return value is false, and subclasses should override this
method as necessary.
handlesSubscriptions in class ServiceAdapter
public void onMessage(javax.jms.Message jmsMessage,
flex.messaging.services.messaging.adapters.JMSConsumer consumer)
public AsyncMessage convertToFlexMessage(javax.jms.Message jmsMessage,
flex.messaging.services.messaging.adapters.JMSConsumer consumer)
public void onJmsConnectionException(javax.jms.JMSException e,
flex.messaging.services.messaging.adapters.JMSProxy jmsProxy)
public int getTopicProducerCount()
public int getTopicConsumerCount()
public String[] getTopicConsumerIds()
public int getQueueProducerCount()
public int getQueueConsumerCount()
public String[] getQueueConsumerIds()
public void removeConsumer(String clientId)
clientId - The identifier for the consumer to remove.
|
||||||||||
| 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/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/services/messaging/adapters/JMSAdapter.html