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

Embedded broker as maven dependency #19

Open
dowhiletrue opened this issue May 25, 2019 · 3 comments

Comments

@dowhiletrue
Copy link

commented May 25, 2019

Problem or use case

I would like to test my mqtt client/broker setup using JUnit tests.
Since it is cumbersome to start a broker before running the tests, an embedded MQTT 5 compliant broker would ease up the testing.

Preferred solution or suggestions

  • HiveMQ broker as maven dependency
  • Documentation on how to start the broker within a running Java process (e.g. Junit test)
@sauroter

This comment has been minimized.

Copy link
Member

commented May 28, 2019

Hi @dowhiletrue,
Thank you for your feature request.

We see the need for something like that, but are right now not sure how to best tackle the issue. Internal considerations are ongoing at the moment.

We will keep the issue open and track progress once decisions are made.

Kind regards
Georg

@siepkes

This comment has been minimized.

Copy link

commented Jul 19, 2019

@sauroter I see some places (like this one) where an embedded mode is mentioned. However I can't find any documentation about it. Does the embedded mode still exist?

@schaebo schaebo added the feature label Jul 30, 2019

@ObviousDWest

This comment has been minimized.

Copy link

commented Aug 8, 2019

I am also interested in this feature. I would prefer it be compatible with Spring (or at least not preclude it), so I can integrate with other standard systems (logging, actuator, RestTemplate, caching, permissions, spring security, maybe jms...). Eg. for implementing hivemq extensions. While some of this can be done by splitting things into microservices, integration tests are much easier if I can recombine all that into a compound application.

I guess I could modify HiveMQServer.java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.