-
1. Re: Some messages not delivered to some clients
iocanel Sep 16, 2011 2:37 AM (in response to jaspathewit)Could you please share a little more details about your activemq configuration (the borker.xml) and the way you setup your consumers?
-
2. Re: Some messages not delivered to some clients
jaspathewit Sep 16, 2011 7:58 AM (in response to iocanel)Active.xml file attached
ActiveMQConnectionFactory is defined as follows in a spring context.
<property name="brokerURL" value="tcp://$:61616"/>
Consumers are created with the following code
public void subscribe(MessageFilter filter) throws JMSException {
/* connectionManager manages the connection to the broker its is responsible for creating the connection on re-establishing the connection if dropped, and managing differences between ActiveMQ connections and SonicMQ connections*/
String clientId = connectionManager.getClientID();
if (subscriber == null) {
if (receiveSession == null) {
receiveSession = connectionManager.getConnection().createSession(false, Session.DUPS_OK_ACKNOWLEDGE);
}
// get the MQ type (Sonic or activeMQ) specific Topic name (handle wild cards)
String topicName = connectionManager.getTopicTransformer().createTopicName(name);
Topic topic = receiveSession.createTopic(topicName);
// get the subscription name to use
String subscribtionName = connectionManager.getTopicTransformer().createSubscriptionName(clientId,
name);
// check if a message filter should be applied
if (filter == null) {
subscriber = receiveSession.createDurableSubscriber(topic, subscribtionName);
}
else {
subscriber = receiveSession.createDurableSubscriber(topic, subscribtionName, filter.getQuery(), false);
}
}
}
Thanks for taking an interest.
Jason
-
activemq.xml 6.3 KB
-