Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation-based API proposal 1 #2

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

OndroMih
Copy link

Annotation-based consumer and client API - proposal 1 for jakartaee/messaging#249 and jakartaee/messaging#243

This proposal is based on the proposals in the https://github.com/tomitribe/jms-proposals repository.

The gist of the proposal:

  • The consumer part is exemplified in the NotificationsListener and BuildAndNotify classes, which are annotated by @MessageConsumer and their method annotated by @TopicListener or QueueListener annotations
  • The client part is exemplified in the BuildAndNotify class, which uses the MessagingClientBuilder builder to build an implementation of an interface (NotificationsClient). The NotificationsClient is a client interface which defines that how the client object should be built. Each method and its parameters are annotated to specify the target queue or topic and how to convert arguments to a message.

Signed-off-by: Ondro Mihalyi <[email protected]>
@dblevins dblevins merged commit d14dd6f into jakartaee:master Jun 15, 2021
@OndroMih OndroMih deleted the annotation-api-proposal1 branch June 16, 2021 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants