|
||||||||||
| 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.MessagingAdapter
flex.messaging.services.messaging.adapters.JMSAdapter
public class JMSAdapter
This adapter for the MessageService integrates Flex messaging with Java Message Service destinations.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
|
| Constructor Summary | |
|---|---|
JMSAdapter()
Constructs an unmanaged JMSAdapter instance. |
|
JMSAdapter(boolean enableManagement)
Constructs a JMSAdapter instance. |
|
| Method Summary | |
|---|---|
void |
exceptionThrown(JMSExceptionEvent evt)
Implements JMSExceptionListener. |
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()
JMS adapter handles its subscriptions so this returns true. |
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 |
messageClientCreated(MessageClient messageClient)
Implements MessageClientListener. |
void |
messageClientDestroyed(MessageClient messageClient)
Implements MessageClientListener. |
void |
messageReceived(JMSMessageEvent evt)
Implements JMSMessageListener. |
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 |
start()
Starts the adapter. |
void |
stop()
Stops the adapter. |
| Methods inherited from class flex.messaging.services.messaging.adapters.MessagingAdapter |
|---|
allowSend, allowSubscribe, getSecurityConstraintManager, setSecurityConstraintManager |
| Methods inherited from class flex.messaging.services.ServiceAdapter |
|---|
getAdapterState, getDestination, setAdapterState |
| 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 |
| Field Detail |
|---|
public static final String LOG_CATEGORY
| 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 MessagingAdapterid - The id of the JMSAdapter.properties - Properties for the JMSAdapter.public void start()
start in interface FlexComponentstart in class ServiceAdapterpublic void stop()
stop in interface FlexComponentstop in class ServiceAdapterpublic void setDestination(Destination destination)
Destination into MessageDestination
and calls super.setDestination.
setDestination in class ServiceAdapterdestination - The destination of the adapter.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 int getQueueConsumerCount()
public String[] getQueueConsumerIds()
public int getTopicConsumerCount()
public String[] getTopicConsumerIds()
public int getTopicProducerCount()
public int getQueueProducerCount()
public void exceptionThrown(JMSExceptionEvent evt)
exceptionThrown in interface JMSExceptionListenerevt - The JMSExceptionEvent.public boolean handlesSubscriptions()
true.
handlesSubscriptions in class ServiceAdaptertrue.public Object invoke(Message message)
invoke in class ServiceAdaptermessage - The Flex message to publish.
Message,
AsyncMessagepublic Object manage(CommandMessage commandMessage)
manage in class ServiceAdaptercommandMessage - The command message to manage.
CommandMessage,
AsyncMessagepublic void messageClientCreated(MessageClient messageClient)
messageClientCreated in interface MessageClientListenermessageClient - The newly created MessageClient.public void messageClientDestroyed(MessageClient messageClient)
messageClientDestroyed in interface MessageClientListenermessageClient - The MessageClient that was destroyed.public void messageReceived(JMSMessageEvent evt)
messageReceived in interface JMSMessageListenerevt - The JMSMessageEvent.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/blazeds/1/javadoc/flex/messaging/services/messaging/adapters/JMSAdapter.html