Coder Social home page Coder Social logo

Comments (4)

edeweerd1A avatar edeweerd1A commented on June 12, 2024

Let me know if I need reporting this upstream to smallrye-reactive-messaging repository.

from quarkus.

quarkus-bot avatar quarkus-bot commented on June 12, 2024

/cc @cescoffier (reactive-messaging), @ozangunalp (reactive-messaging)

from quarkus.

ozangunalp avatar ozangunalp commented on June 12, 2024

Thanks for the reproducer.

It is very easy to create cyclic bean dependencies with emitters and SubscriberDecorator, because decorators are called immediately after creation. I am actually surprised you didn't have the issue with the @Outgoing channel already.

Please use an indirection to access the Emitter you are calling in the SubscriberDecorator, for example a separate bean that'll provide the emitter to the decorator.

@ApplicationScoped
public class EmitterProvider {
    
  @Channel("channel-name")
  Emitter<byte[]> emitter;

  Emitter<byte[]> getEmitter() {
    return emitter;
  }

}

You're having the issue updating to 3.10 because now subscriber decorators are also called on outgoing channel created for the dead letter queue.

Hope this explains.

from quarkus.

edeweerd1A avatar edeweerd1A commented on June 12, 2024

OK now I understand! And thanks for the suggestion.

from quarkus.

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.