[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Re: JMS Producer Routing type
From:       yw yw <wy96fyw () gmail ! com>
Date:       2019-07-18 3:08:59
Message-ID: CADbw6J5FDDhXwcjCZZK3aMTWncYyKM_WE8b+tnWG-VKOg9_naQ () mail ! gmail ! com
[Download RAW message or body]


Hi,

Which convertAndSend do you use?
If you use the one with destinationName of String type, the pubSubDomain
resolves it into queue if false(default) or topic if true. If you use the
one with destination of Destination type, it depends on the type you pass,
either ActiveMQQueue or ActiveMQTopic.
Regarding routing type, a JMS Queue is using Anycast in a point-to-point
manager and a JMS Topic is using Multicast in a publish-subscriber manager.
Please see
https://activemq.apache.org/components/artemis/documentation/2.0.0/address-=
model.html
for
details.


hobojoe <steve@prattgorman.com> =E4=BA=8E2019=E5=B9=B47=E6=9C=8817=E6=97=A5=
=E5=91=A8=E4=B8=89 =E4=B8=8A=E5=8D=882:04=E5=86=99=E9=81=93=EF=BC=9A

> I have a Spring JMS message producer
> (org.springframework.jms.core.JmsTemplate) that I initialize like this,
>
> sender.setConnectionFactory(new CachingConnectionFactory(
>                       new
> ActiveMQConnectionFactory(brokerUrl,artemisUser,unMaskedUserNamePassword)=
)
>               );
>
> and then use jmsTemplate.convertAndSend to publish the message.
>
>
> Do I have to worry about specifying MULTICAST/ANYCAST for message
> producers?
> I don't think I understand
> routing as it pertains to producers very well. If someone can help me
> understand this I sure would
> appreciate it.
>
> sg
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic