blob: 7d1ea27e570d4c81d36aa152de58da43bc9b4644 [file] [log] [blame]
<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>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;service id="message-service" class="flex.messaging.services.MessageService"&gt;
&lt;adapters&gt;
&lt;adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" /&gt;
&lt;adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/&gt;
&lt;/adapters&gt;
&lt;default-channels&gt;
&lt;channel ref="my-streaming-amf"/&gt;
&lt;channel ref="my-polling-amf"/&gt;
&lt;/default-channels&gt;
&lt;destination id="inbound-sms-destination"&gt;
&lt;properties&gt;
&lt;jms&gt;
&lt;destination-type&gt;Topic&lt;/destination-type&gt;
&lt;message-type&gt;javax.jms.TextMessage&lt;/message-type&gt;
&lt;connection-factory&gt;topicConnectionFactory&lt;/connection-factory&gt;
&lt;destination-jndi-name&gt;dynamicTopics/SMSReturnMessages&lt;/destination-jndi-name&gt;
&lt;delivery-mode&gt;NON_PERSISTENT&lt;/delivery-mode&gt;
&lt;message-priority&gt;DEFAULT_PRIORITY&lt;/message-priority&gt;
&lt;acknowledge-mode&gt;AUTO_ACKNOWLEDGE&lt;/acknowledge-mode&gt;
&lt;initial-context-environment&gt;
&lt;property&gt;
&lt;name&gt;Context.INITIAL_CONTEXT_FACTORY&lt;/name&gt;
&lt;value&gt;org.apache.activemq.jndi.ActiveMQInitialContextFactory&lt;/value&gt;
&lt;/property&gt;
&lt;property&gt;
&lt;name&gt;Context.PROVIDER_URL&lt;/name&gt;
&lt;value&gt;vm://localhost&lt;/value&gt;
&lt;/property&gt;
&lt;/initial-context-environment&gt;
&lt;/jms&gt;
&lt;/properties&gt;
&lt;adapter ref="jms"/&gt;
&lt;/destination&gt;
&lt;/service&gt;
</plain-text-body></structured-macro></div>