[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

JMS Listener With Selector Preventing other Selectors Working

Asked by WhatIsTheJava in Java Programming Language, Enterprise Java Beans (EJB), Spring

Tags: Spring, JMS, Java, Message Listeners

Hi I have a distributed spring application that connects to an active MQ broker.

I have multiple client apps that have message listeners listening to a queue.

If a message comes in with correct selector then the App will process the message.

Well thats the plan.  Everything works if I only have one client app.

If I have 2 clients the first one started recieves its messages but the other clients will not receive messages.   They are all running the same jar.  If I rfeset the 2nd client then it picks up its messages but then will not pick up any new ones.

Kind of lost with this

Here is my spring config

Any help would br great
1:
2:
3:
4:
5:
6:
7:
<!-- and this is the message listener container -->
	<bean id="clientJmsContainer" class="org.springframework.jms.listener.SimpleMessageListenerContainer">
		<property name="connectionFactory" ref="listenerConnectionFactory" />
		<property name="destination" ref="clientDestination" />
		<property name="messageListener" ref="clientMessageListener" />
		<property name="messageSelector" value="selector = '192.168.237.38'"/>		
	</bean>
[+][-]10/17/09 11:06 PM, ID: 25598863Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625