You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "ヤ艾枫o.--" <11...@qq.com> on 2021/03/24 14:33:54 UTC
回复: I have some question when i connet activemq artemis with ha mode using spring boot。
Hi
i have try it using spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616).ie in application.properties.
spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616)
spring.artemis.user=admin
spring.artemis.password=password
spring.artemis.embedded.cluster-password=password
but it does not work.and can not connect the service.
when i user spring boot to connect activemq artemis cluster ,Added dependencies about activemq artemis is
<dependency>
<groupId>org.springframwork.boot</groupId>
<artifactId>spring-boot-starter-artemis</artifactId>
<version>2.0.5.RELEASE</version>
</dependency>
i have no idea about wheather i forget the depenencies.
i do not have idea to find the reson why i con not connect the cluster ,
------------------ 原始邮件 ------------------
发件人: "users" <bruscinodf@gmail.com>;
发送时间: 2021年3月24日(星期三) 晚上9:57
收件人: "users"<users@activemq.apache.org>;
主题: Re: I have some question when i connet activemq artemis with ha mode using spring boot。
Hi,
you can use `brokerUrl` property to set more than one server,
ie: spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616)
Regards,
Domenico
On Wed, 24 Mar 2021 at 14:06, ヤ艾枫o.-- <1169114186@qq.com> wrote:
> hello:
> I have some question when i connet activemq artemis with ha mode using
> spring boot。
> &nbsp; &nbsp; According to you doc. when the activemq artemis mode is one.
> I can use spring boot's configuration to connect service.eg:
> &nbsp; &nbsp; spring.artemis.host=
> &nbsp; &nbsp; spring.artemis.port=
> &nbsp; &nbsp; spring.artemis.user=
> &nbsp; &nbsp;........
> &nbsp; &nbsp;but,when the mode is ha or cluster,and the node is more than
> one, if i want to use spring boot to conect the cluster,what should i do.
> &nbsp; &nbsp;i can not find any configuration about cluster when use
> spring boot ,can you help me
> &nbsp; ,I am looking forward to hearing from you
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thanks:
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;yours pengshuai
Re: I have some question when i connet activemq artemis with ha mode using spring boot。
Posted by Domenico Francesco Bruscino <br...@gmail.com>.
Hi,
the `brokerUrl` property was added since v2.5.0-M1 and AFAIK it is the only
way to set more than one server.
Regards,
Domenico
On Wed, 24 Mar 2021 at 15:34, ヤ艾枫o.-- <11...@qq.com> wrote:
> Hi
> i have try it using
> spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616).ie in
> application.properties.
> spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616)
> spring.artemis.user=admin
> spring.artemis.password=password
> spring.artemis.embedded.cluster-password=password
> but it does not work.and can not connect the service.
>
>
> when i user spring boot to connect activemq artemis cluster ,Added
> dependencies about activemq artemis is
>
>
> <dependency>
> <groupId>org.springframwork.boot</groupId>
> <artifactId>spring-boot-starter-artemis</artifactId>
> <version>2.0.5.RELEASE</version>
> </dependency>
> i have no idea about wheather i forget the depenencies.
>
>
> i do not have idea to find the reson why i con not connect the cluster ,
>
>
>
>
>
>
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人:
> "users"
> <
> bruscinodf@gmail.com>;
> 发送时间: 2021年3月24日(星期三) 晚上9:57
> 收件人: "users"<users@activemq.apache.org>;
>
> 主题: Re: I have some question when i connet activemq artemis with ha
> mode using spring boot。
>
>
>
> Hi,
>
> you can use `brokerUrl` property to set more than one server,
> ie: spring.artemis.brokerUrl=(tcp://myhost:61616,tcp://myhost2:61616)
>
> Regards,
> Domenico
>
> On Wed, 24 Mar 2021 at 14:06, ヤ艾枫o.-- <1169114186@qq.com> wrote:
>
> > hello:
> > I have some question when i connet activemq artemis with ha mode using
> > spring boot。
> > &nbsp; &nbsp; According to you doc. when the activemq artemis
> mode is one.
> > I can use spring boot's configuration to connect service.eg:
> > &nbsp; &nbsp; spring.artemis.host=
> > &nbsp; &nbsp; spring.artemis.port=
> > &nbsp; &nbsp; spring.artemis.user=
> > &nbsp; &nbsp;........
> > &nbsp; &nbsp;but,when the mode is ha or cluster,and the node
> is more than
> > one, if i want to use spring boot to conect the cluster,what should i
> do.
> > &nbsp; &nbsp;i can not find any configuration about cluster
> when use
> > spring boot ,can you help me
> > &nbsp; ,I am looking forward to hearing from you
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> thanks:
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp;
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp;yours pengshuai