blob: 86208b7e170996868041d39f984a8202554a157a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<service id="message-service"
class="flex.messaging.services.MessageService">
<adapters>
<adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
<adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
<adapter-definition id="customASAdapter" class="features.messaging.customadapter.CustomActionscriptAdapter"/>
</adapters>
<!-- Basic destinations -->
<!-- AMF -->
<destination id="messaging_AMF" channels="my-amf"/>
<destination id="messaging_AMF_Piggyback" channels="my-amf-piggyback"/>
<destination id="messaging_AMF_Poll" channels="my-amf-poll"/>
<destination id="messaging_AMF_LongPoll" channels="my-amf-longpoll"/>
<destination id="messaging_AMF_LongPoll2" channels="my-amf-longpoll2"/>
<destination id="messaging_AMF_SecureLongPoll" channels="my-amf-secure-longpoll"/>
<destination id="messaging_AMF_Stream" channels="my-amf-stream"/>
<destination id="messaging_AMF_fallback" channels="bad-amf-stream,my-amf-poll"/>
<!-- Secure AMF -->
<destination id="messaging_SecureAMF" channels="my-secure-amf"/>
<!-- HTTP -->
<destination id="messaging_HTTP" channels="my-http"/>
<destination id="messaging_HTTP_Piggyback" channels="my-http-piggyback"/>
<destination id="messaging_HTTP_Poll" channels="my-http-poll"/>
<destination id="messaging_HTTP_LongPoll" channels="my-http-longpoll"/>
<destination id="messaging_HTTP_Stream" channels="my-http-stream"/>
<destination id="messaging_HTTP_fallback" channels="bad-http-stream,my-http-poll"/>
<!-- Secure HTTP -->
<destination id="messaging_SecureHTTP" channels="my-secure-http"/>
<!-- Destinations for specific features -->
<!-- JMS - AMF -->
<destination id="messaging_AMF_Poll_JMS_Topic" channels="my-amf-poll">
<adapter ref="jms"/>
<properties>
<jms>
<connection-factory>java:comp/env/jms/flex/TopicConnectionFactory</connection-factory>
<destination-type>Topic</destination-type>
<destination-jndi-name>java:comp/env/jms/topic/flex/simpletopic</destination-jndi-name>
<message-type>javax.jms.TextMessage</message-type>
</jms>
</properties>
</destination>
<destination id="messaging_AMF_LongPoll_JMS_Topic" channels="my-amf-longpoll">
<adapter ref="jms"/>
<properties>
<jms>
<connection-factory>java:comp/env/jms/flex/TopicConnectionFactory</connection-factory>
<destination-type>Topic</destination-type>
<destination-jndi-name>java:comp/env/jms/topic/flex/simpletopic</destination-jndi-name>
<message-type>javax.jms.TextMessage</message-type>
</jms>
</properties>
</destination>
<destination id="messaging_AMF_Poll_JMS_Queue" channels="my-amf-poll">
<adapter ref="jms"/>
<properties>
<jms>
<connection-factory>java:comp/env/jms/flex/QueueConnectionFactory</connection-factory>
<destination-type>Queue</destination-type>
<destination-jndi-name>java:comp/env/jms/queue/flex/simplequeue</destination-jndi-name>
<message-type>javax.jms.TextMessage</message-type>
</jms>
</properties>
</destination>
<!-- JMS - HTTP -->
<destination id="messaging_HTTP_Poll_JMS_Topic" channels="my-http-poll">
<adapter ref="jms"/>
<properties>
<jms>
<connection-factory>java:comp/env/jms/flex/TopicConnectionFactory</connection-factory>
<destination-type>Topic</destination-type>
<destination-jndi-name>java:comp/env/jms/topic/flex/simpletopic</destination-jndi-name>
<message-type>javax.jms.TextMessage</message-type>
</jms>
</properties>
</destination>
<destination id="messaging_HTTP_Poll_JMS_Queue" channels="my-http-poll">
<adapter ref="jms"/>
<properties>
<jms>
<connection-factory>java:comp/env/jms/flex/QueueConnectionFactory</connection-factory>
<destination-type>Queue</destination-type>
<destination-jndi-name>java:comp/env/jms/queue/flex/simplequeue</destination-jndi-name>
<message-type>javax.jms.TextMessage</message-type>
</jms>
</properties>
</destination>
<!-- Send and subscribe constraint examples -->
<destination id="messaging_AMF_Poll_SendSubscribeConstraint" channels="my-amf-poll">
<properties>
<server>
<send-security-constraint ref="sample-user-custom"/>
<subscribe-security-constraint ref="sample-user-custom"/>
</server>
</properties>
</destination>
<destination id="messaging_AMF_LongPoll_SendSubscribeConstraint" channels="my-amf-longpoll">
<properties>
<server>
<send-security-constraint ref="sample-user-custom"/>
<subscribe-security-constraint ref="sample-user-custom"/>
</server>
</properties>
</destination>
<destination id="messaging_AMF_Stream_SendSubscribeConstraint" channels="my-amf-stream">
<properties>
<server>
<send-security-constraint ref="sample-user-custom"/>
<subscribe-security-constraint ref="sample-user-custom"/>
</server>
</properties>
</destination>
<destination id="messaging_HTTP_Poll_SendSubscribeConstraint" channels="my-http-poll">
<properties>
<server>
<send-security-constraint ref="sample-user-basic"/>
<subscribe-security-constraint ref="sample-user-basic"/>
</server>
</properties>
</destination>
<!-- Subtopics - AMF -->
<destination id="messaging_AMF_Poll_Subtopic" channels="my-amf-poll">
<properties>
<server>
<allow-subtopics>true</allow-subtopics>
<subtopic-separator>.</subtopic-separator>
</server>
</properties>
</destination>
<destination id="messaging_AMF_Stream_Subtopic" channels="my-amf-stream">
<properties>
<server>
<allow-subtopics>true</allow-subtopics>
<subtopic-separator>.</subtopic-separator>
</server>
</properties>
</destination>
<!-- Subtopics - HTTP -->
<destination id="messaging_HTTP_Poll_Subtopic" channels="my-http-poll">
<properties>
<server>
<allow-subtopics>true</allow-subtopics>
<subtopic-separator>.</subtopic-separator>
</server>
</properties>
</destination>
<!-- Clustering - AMF
<destination id="messaging_AMF_Poll_Cluster" channels="my-amf-poll-for-cluster">
<properties>
<network>
<cluster ref="default-cluster"/>
</network>
</properties>
</destination>
-->
<!-- Clustering - SecureAMF
<destination id="messaging_SecureAMF_Poll_Cluster" channels="my-secure-amf-poll-for-cluster">
<properties>
<network>
<cluster ref="default-cluster"/>
</network>
</properties>
</destination>
-->
<!-- Clustering - HTTP
<destination id="messaging_HTTP_Poll_Cluster" channels="my-http-poll-for-cluster">
<properties>
<network>
<cluster ref="default-cluster"/>
</network>
</properties>
</destination>
-->
<!-- Clustering - SecureHTTP
<destination id="messaging_SecureHTTP_Poll_Cluster" channels="my-secure-http-poll-for-cluster">
<properties>
<network>
<cluster ref="default-cluster"/>
</network>
</properties>
</destination>
-->
<!-- BEGIN destinations for testing MessageBrokerFilters -->
<destination id="filteredChat" channels="my-amf-longpoll" />
<destination id="dev/null" channels="my-amf-longpoll" />
<!-- END destinations for testing MessageBrokerFilters -->
<!-- BEGIN - Throttling samples -->
<destination id="messaging_ThrottleInbound_PolicyError">
<properties>
<network>
<throttle-inbound policy="ERROR" max-frequency="8" max-client-frequency="4"/>
</network>
</properties>
<channels>
<channel ref="my-amf-poll"/>
<channel ref="my-amf-longpoll"/>
<channel ref="my-amf-stream"/>
<channel ref="my-http-poll"/>
<channel ref="my-http-longpoll"/>
<channel ref="my-http-stream"/>
</channels>
</destination>
<destination id="messaging_ThrottleInbound_PolicyIgnore">
<properties>
<network>
<throttle-inbound policy="IGNORE" max-frequency="8" max-client-frequency="4"/>
</network>
</properties>
<channels>
<channel ref="my-amf-poll"/>
<channel ref="my-amf-longpoll"/>
<channel ref="my-amf-stream"/>
<channel ref="my-http-poll"/>
<channel ref="my-http-longpoll"/>
<channel ref="my-http-stream"/>
</channels>
</destination>
<destination id="messaging_ThrottleOutbound_PolicyIgnore">
<properties>
<network>
<throttle-outbound policy="IGNORE" max-frequency="8" max-client-frequency="4"/>
</network>
</properties>
<channels>
<channel ref="my-amf"/>
<channel ref="my-amf-poll"/>
<channel ref="my-amf-longpoll"/>
<channel ref="my-amf-stream"/>
<channel ref="my-http"/>
<channel ref="my-http-poll"/>
<channel ref="my-http-longpoll"/>
<channel ref="my-http-stream"/>
</channels>
</destination>
<!-- END - Throttling samples -->
<!-- A sample that uses a custom adapter. -->
<destination id="messaging_CustomAdapter" channels="my-amf-stream">
<adapter ref="customASAdapter"/>
</destination>
</service>