Giter VIP home page Giter VIP logo

Comments (4)

spring-operator avatar spring-operator commented on May 1, 2024

Mark Fisher commented

Moving to M2. We need to think about 2 things (at least):

  1. method naming: I'm thinking of something like WebServiceTemplate with 'marshalSendAndReceive' as well as 'sendAndReceive' with request+reply callbacks.

  2. handling both provided arg for replyTo Address and another method that would generate a temporary one on the fly. With RabbitMQ, we can generate a Queue on the Channel directly, but for other implementations that functionality might be available on the AmqpAdmin implementation only... but we probably don't want to depend on AmqpAdmin impls from AmqpTemplate impls.

from spring-amqp.

spring-operator avatar spring-operator commented on May 1, 2024

Mark Fisher commented

The convertSendAndReceive(Object) method has been implemented. It creates a temporary Queue and registers a Consumer with it.

The challenge with any method that accepts a replyTo Address instance (or a Message that already has a valid replyTo Address property value) is that we would need to ensure that we control the consumer on that Queue and then rely on CorrelationId mapping to a handoff (e.g. a SynchronousQueue).

from spring-amqp.

spring-operator avatar spring-operator commented on May 1, 2024

Irfan commented

I like the idea of having a method that takes an Address argument.

from spring-amqp.

spring-operator avatar spring-operator commented on May 1, 2024

Dave Syer commented

I agree with Mark. If you are going to set the reply address then you can't expect to get the reply yourself - someone else will receive it (or you can do it yourself manually). That would imply that sendAndReceive() should reject messages with replyTo=<anything> (irrelevant if we are only passing in the payload to convertSendAndReceive()).

from spring-amqp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.