synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SYNAPSE-185) JMS transports only work for Queues (not Topics)
Date Thu, 06 Dec 2007 06:29:43 GMT

     [ 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


Mime
View raw message