Re: ActiveMQ artemis listener not working

2020-03-25 Thread rudra1in
Thanks brusdev, there is a problem in client making duplicate calls. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ artemis listener not working

2020-03-25 Thread Justin Bertram
Domenico is right. Using JmsTemplate will create a connection, session, & producer for *every* message sent. This is a significant anti-pattern discussed here [1] and here [2]. Justin [1] http://activemq.apache.org/components/artemis/documentation/latest/perf-tuning.html#avoiding-anti-patterns

Re: ActiveMQ artemis listener not working

2020-03-25 Thread brusdev
Hi, the JmsTemplate creates a new session for each message to send, according to its source[1]. So in the broker log you can find the lines relative the session creating and the message sending for each of the 5 messages sent by `sender.sendmessages`. [1]

Re: ActiveMQ artemis listener not working

2020-03-25 Thread rudra1in
I want to use embedded artemis MQ I have one sender class and one listner tied to one queue. import java.util.Date; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Session; import javax.jms.TextMessage; import

Re: ActiveMQ artemis listener not working

2020-03-25 Thread Justin Bertram
I'd like to help, but I really don't understand what you're asking. Can you elaborate on your use-case and the behavior you're seeing? Justin On Wed, Mar 25, 2020 at 11:43 AM rudra1in wrote: > HI All, > I fixed it, there is mismatch in queue name. > Please help me why fie threads are firing

Re: ActiveMQ artemis listener not working

2020-03-25 Thread rudra1in
HI All, I fixed it, there is mismatch in queue name. Please help me why fie threads are firing send message? Thanks in advance, RUdra -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ artemis listener not working

2020-03-25 Thread rudra1in
Thanks for the response, but this is synchronous and I am looking for synchronous implementation. Thanks in advance, Rudra -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ artemis listener not working

2020-03-25 Thread brusdev
Hi, there is an ActiveMQ Artemis Spring Boot Example at https://github.com/apache/activemq-artemis/tree/master/examples/features/standard/spring-boot-integration Regards, Domenico -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html