Hi
Did you find a solution for this issue.
I am also facing similar problem
I have a distributed Queue
The Message producer application running in a weblogic10.0 cluster(2 instance)
It looks up code to send a message is
Code:
jndiContext = new InitialContext();
queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("jms/cf");
queue = (Queue) jndiContext.lookup("jms/DMSQueue");
All the messages are sent to Queue, Here also it is not evenly distributed.
consumer application is a spring MDP (Not running in cluster)
The configuration of JNDI is
Code:
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://10.54.194.35:26103,10.54.194.35:26105</prop>
</props>
</property>
</bean>
If you see the provider url, I have given both the server ip and port,
the consumer config is
Code:
<bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="concurrentConsumers" value="4" />
<property name="connectionFactory" ref="queueConnectionFactory" />
<property name="destination" ref="queue" />
<property name="messageListener" ref="messageListener" />
</bean>
I have configured for 4 concurrentConsumers
But all the Consumers are associsted with the first server
the next one does not have any consumer associated.
Is this a weblogic or spring problem ?