BlazeDS

连接性 > 容器 > BlazeDS

BlazeDS

您可能还想查看由 Michael Martin 编写的 简化 BlazeDS 和 JMS 文章

使用 JNDI 支持 的 dynamicQueues 功能,Ryan Gardner 创建了此有效的 BlazeDS messaging-config.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<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"/>
   </adapters>

   <default-channels>
               <channel ref="my-streaming-amf"/>
               <channel ref="my-polling-amf"/>
   </default-channels>

  <destination id="inbound-sms-destination">

   <properties>
   <jms>
     <destination-type>Topic</destination-type>
     <message-type>javax.jms.TextMessage</message-type>
     <connection-factory>topicConnectionFactory</connection-factory>
     <destination-jndi-name>dynamicTopics/SMSReturnMessages</destination-jndi-name>

     <delivery-mode>NON_PERSISTENT</delivery-mode>
     <message-priority>DEFAULT_PRIORITY</message-priority>
     <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
     <initial-context-environment>
       <property>
         <name>Context.INITIAL\_CONTEXT\_FACTORY</name>
         <value>org.apache.activemq.jndi.ActiveMQInitialContextFactory</value>
       </property>
       <property>
         <name>Context.PROVIDER_URL</name>
         <value>vm://127.0.0.1</value>

       </property>
     </initial-context-environment>
   </jms>
   </properties>
   <adapter ref="jms"/>
   </destination>
</service>

Apache、ActiveMQ、Apache ActiveMQ、Apache 羽毛徽标和 Apache ActiveMQ 项目徽标是 Apache 软件基金会的商标。版权所有 © 2024,Apache 软件基金会。根据 Apache 许可证 2.0 授权。