| <div class="wiki-content maincontent"><h2>BlazeDS</h2> |
| |
| <p>You may also want to check out the <a shape="rect" href="http://mmartinsoftware.blogspot.com/2008/05/simplified-blazeds-and-jms.html">Simplified BlazeDS and JMS article</a> by <a shape="rect" href="http://mmartinsoftware.blogspot.com/">Michael Martin</a>.</p> |
| |
| <p>Using the dynamicQueues feature of the <link><page ri:content-title="JNDI Support"></page></link> Ryan Gardner created thisworking BlazeDS messaging-config.xml file:</p> |
| |
| <structured-macro ac:macro-id="b238623f-c9bb-49a6-a5c5-a5549d2610b9" ac:name="code" ac:schema-version="1"><parameter ac:name="">xml</parameter><plain-text-body> |
| <?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://localhost</value> |
| |
| </property> |
| </initial-context-environment> |
| </jms> |
| </properties> |
| <adapter ref="jms"/> |
| </destination> |
| </service> |
| </plain-text-body></structured-macro></div> |
| |