message-listener

DMLC message consumption and acknowledgement

爷,独闯天下 提交于 2020-01-06 14:56:29
问题 This is a follow up question for Difference between AUTO_ACKNOWLEDGEMENT mode with and without Spring JMS. I am using DMLC and my concurrent consumers count is 1. The prefetch limit is > 1. I received a message and it is acknowledged before listener is executed. So, while the listener is executing, broker has more messages and it sends it to consumer as per prefetch settings. Since the listener is still executing, how will the consumption and acknowledgement works for subsequent messages?

JMS MessageConsumer Using MessageListener Terminates on ActiveMQ Shutdown

自作多情 提交于 2020-01-03 02:59:10
问题 Trying to have a JMS MessageConsumer survive ActiveMQ reboots, so it can reconnect using the Failover Transport protocol. However, it terminates upon shutdown of ActiveMQ. This looks like a bug that was reported and "resolved", but I'm still seeing this in the latest version of ActiveMQ 5.10.0 I used the following maven dependency <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-all</artifactId> <version>5.10.0</version> </dependency> Here is some sample code using

retrieving a value from message listener and print in Main

拜拜、爱过 提交于 2019-12-24 12:34:17
问题 I have 2 EJB app, A and B. A has a stateless session that send a message to app B (Message driven bean). App B send a message back to app A. Now, I have the value I want in the message listener in the stateless session bean in A. But I need to show it from Main. I tried declaring a variable and store the value in it. But when I call it from Main, the value is lost. @Stateful public class AManagerBean implements ejb.AManagerRemote { @Resource(mappedName = "jms/QueueConnectionFactory") private

How to register message handler prior to ShowDialog() blocking call?

房东的猫 提交于 2019-12-19 22:01:55
问题 I'm using a Messenger class in order to send data between view models. There is an AppView that hosts two main views in a content control, and up until now have had no issue with sending/receiving data this way. Issue: Now I added a ProductView that shows a separate dialog to the AppView. But when I call Messenger.Default.Send<ProductModel>(SelectedProduct); after calling .ShowDetailDialog() this blocks the Send code call, until the dialog is closed. I tried the other way around, calling the

Query regarding Spring message-driven-channel-adapter

自古美人都是妖i 提交于 2019-12-14 02:38:51
问题 I am using Spring's message-driven-channel-adapter. My component is consuming message from Tibco Topic and Publishing to RabbitMQ topic So The message flow is as follows: Tibco-> (subscribed by )Component (Published to)-> RabbitMQ The service activator is shown below: as we see there is a input-channel and an output-channel. The bean storeAndForwardActivator will have the business logic (within the method createIssueOfInterestOratorRecord) <int:service-activator input-channel=

How to register message handler prior to ShowDialog() blocking call?

痴心易碎 提交于 2019-12-01 19:54:04
I'm using a Messenger class in order to send data between view models. There is an AppView that hosts two main views in a content control, and up until now have had no issue with sending/receiving data this way. Issue: Now I added a ProductView that shows a separate dialog to the AppView. But when I call Messenger.Default.Send<ProductModel>(SelectedProduct); after calling .ShowDetailDialog() this blocks the Send code call, until the dialog is closed. I tried the other way around, calling the Send code first, then opening the dialog. But this means that the message handler in the receiving VM

How can I Stop/start/Pause a @JmsListener (the clean way)

♀尐吖头ヾ 提交于 2019-11-29 02:04:37
I am using Spring(boot) on my project and I access a JMS Queue (ActiveMQ) using : @JmsListener(destination = "mydestinationQueue") public void processMessage(String content) { //do something } And it works perfectly but I need to be able to stop/pause/start this bean programatically (a REST call or something like that) When I stop or pause this bean I want to be sure to have fully processed the current message. any idea about that ? thanks Here is the solution I've found @RestController @RequestMapping("/jms") public class JmsController { @Autowired ApplicationContext context; @RequestMapping

How can I Stop/start/Pause a @JmsListener (the clean way)

天大地大妈咪最大 提交于 2019-11-27 16:38:40
问题 I am using Spring(boot) on my project and I access a JMS Queue (ActiveMQ) using : @JmsListener(destination = "mydestinationQueue") public void processMessage(String content) { //do something } And it works perfectly but I need to be able to stop/pause/start this bean programatically (a REST call or something like that) When I stop or pause this bean I want to be sure to have fully processed the current message. any idea about that ? thanks 回答1: Here is the solution I've found @RestController