Activemq经纪人 - 春季滴水

发布于 2025-01-27 06:23:05 字数 511 浏览 3 评论 0原文

我是Spring Dropwizard的新手,想在简单的客户端应用程序上配置ActiveMQ。

我知道,当使用Spring AutoConfigure放置在Application.properties中时,以下配置在Spring Boot中起作用。

spring.activemq.brokerUrl=tcp://0.0.0.0:61616
spring.jms.cache.enabled=false

但是,我们如何在春季滴水中实现同一件事呢?我们如何将这些属性放在config.yml中,以便我的客户端可以开始收听JMS消息?

我尝试了以下配置,但是Spring没有从配置中读取,

spring:
   activemq:
       broker-url: tcp://localhost:61616

我们如何在Dropwizard配置中配置相同的配置,并以最小的更改以开始聆听主题?

I am new to Spring Dropwizard and want to configure ActiveMQ on a simple client app.

I know that below configuration works in Spring Boot when placed in application.properties using Spring autoconfigure.

spring.activemq.brokerUrl=tcp://0.0.0.0:61616
spring.jms.cache.enabled=false

But how can we achieve the same thing in Spring Dropwizard? How can we place these properties in config.yml so that my client can start listening to JMS messages?

I tried the below config but Spring is not getting read from the config

spring:
   activemq:
       broker-url: tcp://localhost:61616

How can we configure same config in Dropwizard config with minimal changes to start listening to topic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文