spring-jms

Provider configuration set number of messages to prefectch

一世执手 提交于 2019-12-11 07:47:46
问题 I am new to spring boot jms and i saw something like provider configuration - > set Number of messages to prefetch function, i could not find much about it and i don't have much clear idea as to what does it mean? I have my concurrency set to 5-100. So does it mean, everytime a new consumer is spawned, this will get the number of messages, lets say if i set it 5, will it get 5 messages from queue at once? Without using spring jms we use to make a receive call which can fetch upto 10 message,

Spring Integration JMS with JTA rollback when message goes to errorChannel

老子叫甜甜 提交于 2019-12-11 06:16:25
问题 I am using Spring Integration with JTA support through Atomikos and JMS bound to different Webshpere MQ both inbound and outbound. The flow is the following: JMS inbound channel adapter receive the message some transformations JMS outbound channel adapter to the output queue when an error occurs, the errorChannel receives the message exception type router routes unhandled errors to a custom rethrow service and handled ones to a recipient-list-router that sends them to 2 error queues My

multiple jms connection factory

半腔热情 提交于 2019-12-11 05:36:01
问题 i have two connection factories, one is for WAN(internet ip), another is for the LAN(lan ip), two connection factories are working fine now in my project. but the only thing is in some case of application deployment that LAN won't appear for the particular customer,but some are needed.then i need the application config will heardbeat the connection facotry what if the remote remote activeMQ server appear then connection, otherwise heardbeat it , but now sometimes the it will block/stuck the

Spring JMS Concurrency and JMSXGroupID

左心房为你撑大大i 提交于 2019-12-11 04:59:52
问题 I'm using Spring JMS in my web application inside a TomEE container and I wanted to use JMSXGroupIDs to group my messages together. I use the following Spring JMS Listener Container configuration. <jms:listener-container container-type="default" connection-factory="jmsFactory" cache="none" acknowledge="auto" transaction-manager="transactionManager" concurrency="1-5" > <jms:listener id="files-queue-listener" selector="mimetype ='application/xml'" destination="filesQueue" ref=

JMSListener - dynamic selector

泪湿孤枕 提交于 2019-12-11 04:24:27
问题 I currently have a JMSListener as shown below. It uses a selector of a value in a properties file. This works fine. @JmsListener(destination = "myQueueDest", selector = MyHeaders.SELECTOR_KEY + " = '${myapp.selector_val}'") private void consumeData(MyCustomObj mycustomObj) { } I have a need now to use a dynamic selector with a value in memory, rather than the spring property. Is there a way to use JMSListener (or some other listener mechnaism) to do a selection off the ActiveMQ queue? Update:

Apache MQ - JMS message selector

允我心安 提交于 2019-12-11 03:29:36
问题 I need some help to fetch all the messages for a particular queue which has a particular property on it. The problem here is I need to match the JMS header property process with processName .As the message can have the value for process as upper or lowercase but processName always has a value which is uppercase. I can NOT use equalsIgnorecase here like : StringJMSCriteriaBuilder("process").equalIgnorecase(processName); As there is no such method in IJMSSelectorCriteriaBuilder interface. Below

Sping .jms.listener blocking another listener from reading JMS message

匆匆过客 提交于 2019-12-11 00:37:11
问题 I have two applications Apple and Pear that uses the above class to listen on a configured JMS queue in WildFly ( 10.1.0 ). The Spring configuration is shown below. <bean id="appleMessageListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer" depends-on="transactionManager"> <property name="connectionFactory" ref="connectionFactory" /> <property name="destination" ref="outQueue" /> <property name="destinationResolver" ref="jmsDestinationResolver" />

ActiveMQ connections/sessions in PooledConnectionFactory pool not used with failover: uri

﹥>﹥吖頭↗ 提交于 2019-12-11 00:21:32
问题 I have a 2 broker cluster on AMQ 5.12.0 that I’m sending messages through from a Tomcat 8 web app. I have the following Camel (2.15.2) / Spring (4.2.1) config. which I’m using to configure an AMQ PooledConnectionFactory. <camel:camelContext id="camel-client"> <camel:template id="camelTemplate"/> </camel:camelContext> <bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="failover:(tcp://dev2.wtgroupllc.com:61626?keepAlive=true

spring jms error handler access to message

 ̄綄美尐妖づ 提交于 2019-12-10 22:49:05
问题 We are using spring-jms to receive message off the queue. But sometimes we got a connection issue (downstream JDBC on the listener thread) where we don't have enough connection in the pool. So we want to retry that message again and if we still dont have connection then we will reject the message We are trying this in error handler and that error handler instance is inject to spring default message listener container but I am not sure how to access the message object as it only provides

Error Casting Spring's JndiObjectFactoryBean to ConnectionFactory for Solace-MQ JMS

房东的猫 提交于 2019-12-10 20:51:24
问题 I have a good working XML configuration for Camel Context that uses JNDI with Spring Later Solace.JndiObjectFactoryBean gets used as connectionFactory <bean id="Solace.JmsComponent" class=" on"> <property name="connectionFactory" ref="Solace.JndiObjectFactoryBean" /> <property name="destinationResolver" ref="Solace.JndiDestinationResolver" /> </bean> I am trying to convert this into a Java class that extends from org.apache.camel.spring.javaconfig.CamelConfiguration . But there is one problem