You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Upul Godage (JIRA)" <ji...@apache.org> on 2007/12/06 07:29:43 UTC

[jira] Resolved: (SYNAPSE-185) JMS transports only work for Queues (not Topics)

     [ https://issues.apache.org/jira/browse/SYNAPSE-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Upul Godage resolved SYNAPSE-185.
---------------------------------

    Resolution: Fixed

Now destination type can be given as a parameter.

transport.jms.DestinationType = queue OR topic

JMS sender example (modified sample 251)
------------------------------------------------------------

<definitions xmlns="http://ws.apache.org/ns/synapse">

    <proxy name="StockQuoteProxy" transports="http">
        <target>
            <endpoint>
              <address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.DestinationType=topic"/>
            </endpoint>
            <inSequence>
                <property action="set" name="OUT_ONLY" value="true"/>
            </inSequence>
            <outSequence>
                <send/>
            </outSequence>
        </target>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
    </proxy>

</definitions>

 

JMS listener example (modified sample 250)
-------------------------------------------------------------

<definitions xmlns="http://ws.apache.org/ns/synapse">

    <proxy name="StockQuoteProxy" transports="jms">
      <parameter name="transport.jms.DestinationType">topic</parameter>
        <target>
            <inSequence>
                <property action="set" name="OUT_ONLY" value="true"/>
            </inSequence>
            <endpoint>
                <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
            </endpoint>
            <outSequence>
                <send/>
            </outSequence>
        </target>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
    </proxy>

</definitions>

> JMS transports only work for Queues (not Topics)
> ------------------------------------------------
>
>                 Key: SYNAPSE-185
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-185
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 1.1
>            Reporter: Upul Godage
>            Assignee: Upul Godage
>
> JMS transports always create queue related JMS objects. So topics do not work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org