On Thu, Mar 27, 2008 at 11:48 AM, Sebastian Gomez <[EMAIL PROTECTED]> wrote: > I've been having a look at configuring the jms endpoint to make the > subscription durable, but I think the one who has to make it durable > should be the consumer, who will live in machine B without ServiceMix, > so I don't think the endpoint configuration is the problem.
Yes, this is correct. This is why I asked if you were using durable subscriptions as the subscription is made from the client side as durability is specified when creating the subscription. See the following Javadocs: JMS API: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/TopicSession.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String) http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/TopicSession.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String,%20java.lang.String,%20boolean) ActiveMQ API: http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQSession.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String) http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQSession.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String,%20java.lang.String,%20boolean) > Something strange is happening: > - On machine A's jConsole, I see there is just 1 consumer (that I know > is the one on machine A), so the one on machine B doesn't appear, > while machine B's jConsole says my topic has 2 consumers. > - On machines A and B, I can read the messages sent from machine B, > but the messages sent from machine A are only seen on A's jConsole. > > Any idea why these inconsistencies occur? I'm not sure why you're seeing this exactly. What I recommend you do is download ActiveMQ so you can use the examples to test your environment. The ActiveMQ examples contain a simple consumer and producer that contain many options. Here's a doc to get you started with them: http://activemq.apache.org/examples.html Take a look at all the options available in the build.xml or even the src directory at the ConsumerTool and ProducerTool. I have used the ActiveMQ examples to test many different ActiveMQ broker topologies in many different customer environments and I find them extremely useful. Use these examples to do some simple testing so you can understand how topics and queues should work. Then apply what you learn to your situation. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache Camel - http://activemq.org/camel/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Blog: http://bruceblog.org/
