Duplex or request-response with Apache ActiveMQ WCF binding configuration question

I am trying to use Apache.NMS.WCF bindings for a WCF application and get the following error -

The contract requires TwoWay (either request-response or duplex), but Binding 'NmsBinding' does not support it or is incorrectly configured to support it.

My system.service model looks like this:

    <bindings>
        <nmsBinding>
            <binding 
                name="myNMSBinding" 
                destination="test.queue" 
                destinationType="TemporaryQueue"
                >
            </binding>
        </nmsBinding>
    </bindings>

    <extensions>
        <!--<bindingElementExtensions>
            <add name="nmsTransPort" 
                 type="Apache.NMS.WCF.NmsTransportElement, Apache.NMS.WCF, Version=1.1.0.1642, Culture=neutral, PublicKeyToken=82756feee3957618" />
        </bindingElementExtensions>-->
        <bindingExtensions>
            <add name="nmsBinding" 
                 type="Apache.NMS.WCF.NmsBindingCollection, Apache.NMS.WCF, Version=1.1.0.1642, Culture=neutral, PublicKeyToken=82756feee3957618" 

                 />
        </bindingExtensions>
    </extensions>

    <services>
        <service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior">
            <!-- Service Endpoints -->
            <endpoint 
                address="tcp://localhost:61616" 
                binding="nmsBinding" 
                bindingConfiguration="myNMSBinding" 
                contract="WcfService1.IService1"
                />
        </service>
    </services>

Is there a way to configure Apache NMS to duplex or does it just not support it?

+5
source share
1 answer

A message queue, such as ActiveMQ, is usually by design just a one-way thing - you can send messages about it as well.

, , , : , (), , , .

. MSDN :

MSMQ, WCF, ActiveMQ .

+6

All Articles