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

How to consume events that are not located in a common package #226

Open
hieutran29 opened this issue Sep 24, 2022 · 0 comments
Open

How to consume events that are not located in a common package #226

hieutran29 opened this issue Sep 24, 2022 · 0 comments

Comments

@hieutran29
Copy link

Let's say I have 2 Spring boot applications A and B. Are there any ways that application B subscribes to events published by application A, where those events are placed in application A rather than in a common project?

For example, I have 2 microservices: TodoService and TodoViewService. TodoService publishes events TodoCreatedEvent (which is located in package com.todoservice.events.TodoCreatedEvent). In TodoViewService, I created TodoCreatedEvent located in package com.todoviewservice.events.TodoCreatedEvent. I want TodoViewService to subscribe to TodoCreatedEvent published from TodoService, but it doesn't work.

Any suggestions?
Thanks

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

No branches or pull requests

1 participant