Re: sending messages to a topic that program is listening to

2009-02-06 Thread Bill Schuller
I believe you have to specify your selector as you create your consumer. On 2/6/09 6:07 AM, "Mark Webb" wrote: > OK. I have it all figured out and running. I have looked through the > API's and cannot find the answer, but can I set the selector criteria > after the consumer has started? > >

Re: sending messages to a topic that program is listening to

2009-02-06 Thread Mark Webb
OK. I have it all figured out and running. I have looked through the API's and cannot find the answer, but can I set the selector criteria after the consumer has started? Thanks On Thu, Feb 5, 2009 at 11:32 AM, Bill Schuller wrote: > Here is some more detailed information on message propertie

Re: sending messages to a topic that program is listening to

2009-02-05 Thread Bill Schuller
Here is some more detailed information on message properties and selectors. The ActiveMQ documentation is a little sparse. Selectors are part of the JMS API, so they behave the same across broker implementations. http://www.informit.com/articles/article.aspx?p=170722&seqNum=2 On 2/5/09 9:48 AM,

Re: sending messages to a topic that program is listening to

2009-02-05 Thread Bill Schuller
Implement a header property identifying the source of the message ( ŒsetStringProperty(source, ³me²)¹. In your topic subscription, use a selector like Œsource not me¹ in each of your apps... On 2/5/09 9:38 AM, "Mark Webb" wrote: > I have a group of applications that use JMS to communicate. I w

sending messages to a topic that program is listening to

2009-02-05 Thread Mark Webb
I have a group of applications that use JMS to communicate. I would like to set up a topic for internal control messages (status, heartbeat..etc). Each of these processes will subscribe to the topic and send messages to each other periodically. The problem I have is that if application A sends a