spring-jms

JMS load balancing(1 Queue, 2 Queue Connection Factory and 1 .bindings)

瘦欲@ 提交于 2019-12-02 17:09:36
问题 I am using JMS to put messages into the Queue. The Queue is linked with 2 QueueConnection Factories and 2 Queue managers. While sending the messages to the Queue I want to equally distribute/send message to 2 different Queue Managers via 2 different Queue Connection factory. Example: In different point of time, My service receives messages from some user.I need to equally put the messages into 2 QCF/QueueManagers. (load balancing) If I get 1st message I need to send to 1st QCF1/Queue Manager

IBM MQManager as XA Transaction Manager with Spring-jms and Spring-tx

浪子不回头ぞ 提交于 2019-12-02 17:05:10
问题 We are trying to use IBM MQ manager as XA Transaction manager with spring-jms and spring transaction support. Does IBM MQ manager play well with spring-jta support? 回答1: You can't use the WMQ JMS client (which is what spring-jms would use) with the MQ QueueManager acting as the XA transaction manager. The intention is that a JMS application would be controlled via a JTA implemented transaction manager (i.e. a Java EE application server). You can however use the WMQ Java client (i.e. non JMS)

Control message listener container to stop for certain period and start again to listen

南楼画角 提交于 2019-12-02 16:33:09
问题 Listener : <bean id="msglistenerForAuditEvent" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="jmsFactory"/> <property name="sessionTransacted" value="true"/> <property name="destinationName" value="test.event"/> <property name="messageListener" ref="auditListener" /> </bean> I want to stop the container to listen the JMS messages and start it again after certain period? Can it be acheived? 回答1: maybe there is better solution

message-driven-channel-adapter drops first message after app context startup unless send is called with a delay

雨燕双飞 提交于 2019-12-02 14:03:29
问题 I have an integration test for my Spring Integration config, which consumes messages from a JMS topic with durable subscription. For testing, I am using ActiveMQ instead of Tibco EMS. The issue I have is that I have to delay sending the first message to the endpoint using a sleep call at the beginning of our test method. Otherwise the message is dropped. If I remove the setting for durable subscription and selector, then the first message can be sent right away without delay. I'd like to get

Control message listener container to stop for certain period and start again to listen

北城余情 提交于 2019-12-02 09:53:49
Listener : <bean id="msglistenerForAuditEvent" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="jmsFactory"/> <property name="sessionTransacted" value="true"/> <property name="destinationName" value="test.event"/> <property name="messageListener" ref="auditListener" /> </bean> I want to stop the container to listen the JMS messages and start it again after certain period? Can it be acheived? maybe there is better solution but i think this one can fit : import org.springframework.beans.factory.annotation.Autowired; import org

IBM MQManager as XA Transaction Manager with Spring-jms and Spring-tx

非 Y 不嫁゛ 提交于 2019-12-02 08:19:56
We are trying to use IBM MQ manager as XA Transaction manager with spring-jms and spring transaction support. Does IBM MQ manager play well with spring-jta support? whitfiea You can't use the WMQ JMS client (which is what spring-jms would use) with the MQ QueueManager acting as the XA transaction manager. The intention is that a JMS application would be controlled via a JTA implemented transaction manager (i.e. a Java EE application server). You can however use the WMQ Java client (i.e. non JMS) and have the MQ QueueManager act as the XA transaction manager (non JTA). As @COLINHY said you can

JMS load balancing(1 Queue, 2 Queue Connection Factory and 1 .bindings)

流过昼夜 提交于 2019-12-02 08:14:34
I am using JMS to put messages into the Queue. The Queue is linked with 2 QueueConnection Factories and 2 Queue managers. While sending the messages to the Queue I want to equally distribute/send message to 2 different Queue Managers via 2 different Queue Connection factory. Example: In different point of time, My service receives messages from some user.I need to equally put the messages into 2 QCF/QueueManagers. (load balancing) If I get 1st message I need to send to 1st QCF1/Queue Manager and If another msg arrives to my service I will have to send it to 2nd QCF1/Queue Manager. Because JMS

message-driven-channel-adapter drops first message after app context startup unless send is called with a delay

六月ゝ 毕业季﹏ 提交于 2019-12-02 06:37:06
I have an integration test for my Spring Integration config, which consumes messages from a JMS topic with durable subscription. For testing, I am using ActiveMQ instead of Tibco EMS. The issue I have is that I have to delay sending the first message to the endpoint using a sleep call at the beginning of our test method. Otherwise the message is dropped. If I remove the setting for durable subscription and selector, then the first message can be sent right away without delay. I'd like to get rid of the sleep, which is unreliable. Is there a way to check if the endpoint is completely setup

How to set ApplicationIdData using MQQueueConnectionFactory?

我们两清 提交于 2019-12-02 03:26:57
Trying to figure out the camel/Spring configuration to set ApplicationIdData using JMS. I know the java way to do it as below, I set MQOO_SET_IDENTITY_CONTEXT using below int putOptions = MQConstants.MQPMO_SET_IDENTITY_CONTEXT; pmo.options =putOptions; and then i set applicationIdData as: MQMessage msg = new MQMessage(); msg.applicationIdData = "SomeId"; msg.writeString(qmessage); queue.put(msg, pmo); Question is, How do I set applicationIdData using JMS/camel/Spring configuration . Below is my current camel configuration. <bean class="org.apache.camel.component.jms.JmsComponent" id=

Does anyone know exactly what javax.jms.InvalidDestinationException: Not allowed to create destination means?

百般思念 提交于 2019-12-02 03:01:35
问题 I am try to connect to a Tibco Ems Topic using Spring when I recieve this error. Here is the config: <jms:listener-container connection-factory="Tcf" acknowledge="auto" > <jms:listener id="ListenerContainer" destination="######" ref="MessageListener" /> </jms:listener-container> <bean id="MessageListener" class="com.dcc.jms.listeners.TestListener"></bean> <!-- JNDI Template --> <bean id="JndiTemplate" class="org.springframework.jndi.JndiTemplate"> <property name="environment"> <props> <prop