Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Injected message producer #5

Description

@elandau
public class SomeService {
    private MessageProducer producer;

    @Inject
    public SomeService(MessageProducer producer) {
        this.producer = producer;
    }

    public void doSomething() {
        Future<Boolean>  future = producer.produce(OutgoingMessage().withBody("blah blah").build());
        future.get();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions