Help needed on ActiveMQ concepts and architecture

2010-12-23 Thread pdp11
Hi , I am new to ActiveMQ but not to JMS. I have worked with JMS extensively with 'application servers' like WebLogic and JBoss. I am finding the terminology in the documentation confusing because of its non-JMS nature. Specifically, I have a few queries : 1. What is this whole business of Conn

Re: AMQ_SCHEDULED_DELAY not working correctly

2010-12-23 Thread Norman Maurer
Hm, from the code it should work. I use message scheduling with 5.4.2 and it works as espected here. Bye, Norman 2010/12/23 devnull : > > I have the following method: > > http://pastebin.com/8hHV7HxL > > I'm trying to set a delay of 120 seconds to re-deliver a message to a queue. > Instead of w

AMQ_SCHEDULED_DELAY not working correctly

2010-12-23 Thread devnull
I have the following method: http://pastebin.com/8hHV7HxL I'm trying to set a delay of 120 seconds to re-deliver a message to a queue. Instead of waiting the 120 seconds it goes into the Queue immediately and is available for dequeue. Not expected results. I'm running 5.5-snapshot does that co

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
Thanks again... One more question... is the priority algorithm applied by default or do the queues need to be configured as in this documentation; http://activemq.apache.org/how-can-i-support-priority-queues.html. Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/J

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread Timothy Bish
On Thu, 2010-12-23 at 10:20 -0800, rliguori wrote: > Got it, thanks. > > So where is the priority algorithm applied? On the broker after the > message(s) are sent? > > Thanks again. > > Its rather complicated as it has a lot to do with the Message Store and in memory caching so there's not re

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
Got it, thanks. So where is the priority algorithm applied? On the broker after the message(s) are sent? Thanks again. -- View this message in context: http://activemq.2283324.n4.nabble.com/JMSPriority-implemented-in-AMQ-5-4-1-tp3162256p3162416.html Sent from the ActiveMQ - User mailing lis

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread Timothy Bish
On Thu, 2010-12-23 at 09:50 -0800, rliguori wrote: > "Did you set the priority on the MessageProducer ?" > >> No, I set the priority of the individual messages. Example: > >> message.setJMSPriority(9); Why would I set the priority on the producer, > >> please provide an example and explain, if yo

Re: Is ActiveMQ 5.4.2 compliant against the JMS TCK?

2010-12-23 Thread rliguori
Is the JMS TCK part of the Java EE TCK, or does the Java EE TCK perform various JMS tests outside of the JMS TCK? -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-ActiveMQ-5-4-2-compliant-against-the-JMS-TCK-tp3091508p3162385.html Sent from the ActiveMQ - User mailing li

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
"Did you set the priority on the MessageProducer ?" >> No, I set the priority of the individual messages. Example: >> message.setJMSPriority(9); Why would I set the priority on the producer, >> please provide an example and explain, if you don't mind. -- View this message in context: http://ac

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread Timothy Bish
On Thu, 2010-12-23 at 09:22 -0800, rliguori wrote: > "I think this part of the spec is terrible." > >> It does leave a lot to be desired. > > "It is so vague you can do nothing to order by priority and still claim > compliance. " > >>I agree it is vague, but my interpretation is that "something"

Re: Is ActiveMQ 5.4.2 compliant against the JMS TCK?

2010-12-23 Thread rliguori
Yes, I see the component listed in the release notes, but there is no compliancy claim. As such, I created a post on the Geronimo forum: http://apache-geronimo.328035.n3.nabble.com/JMS-TCK-Compliancy-for-ActiveMQ-td2137014.html. I'm just looking for a resource to definately state, ActiveMQ versi

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
"I think this part of the spec is terrible." >> It does leave a lot to be desired. "It is so vague you can do nothing to order by priority and still claim compliance. " >>I agree it is vague, but my interpretation is that "something" must be implemented. Examine this statement, "it should do it

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
"I think this part of the spec is terrible." >> It does leave a lot to be desired. "It is so vague you can do nothing to order by priority and still claim compliance. " >>I agree it is vague, but my interpretation is that "something" must be implemented. Examine this statement, "it should do it

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread andrew . marlow
FWIW, I think this part of the spec is terrible. It is so vague you can do nothing to order by priority and still claim compliance. The queue code I am working on allows one to choose between AMQ and IBM MQSeries. With the latter, the data really is ordered by priority, with AMQ it is not. It m

Re: Producer flow control question

2010-12-23 Thread maarten.dirkse
Behaviour is the same for 5.4.2 and 5.5-snapshot -- View this message in context: http://activemq.2283324.n4.nabble.com/Producer-flow-control-question-tp3092808p3162283.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
Two interesting links I found: http://www.ibm.com/developerworks/forums/thread.jspa?threadID=64892 http://activemq.apache.org/how-can-i-support-priority-queues.html -- View this message in context: http://activemq.2283324.n4.nabble.com/JMSPriority-implemented-in-AMQ-5-4-1-tp3162256p3162281.ht

JMSPriority implemented in AMQ 5.4.1?

2010-12-23 Thread rliguori
Does ActiveMQ 5.4.1 support JMSPriority based on the the JMS API 1.1. specification: "JMS does not require that a provider strictly implement priority ordering of messages; however, it should do its best to deliver expedited messages ahead of normal messages." If it does, I would like to see the

Re: Producer flow control question

2010-12-23 Thread maarten.dirkse
Pretty sure that this is related to https://issues.apache.org/jira/browse/AMQ-2683 -- View this message in context: http://activemq.2283324.n4.nabble.com/Producer-flow-control-question-tp3092808p3162218.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Producer flow control question

2010-12-23 Thread maarten.dirkse
Turns out it doesn't have anything to do with the JMSTemplate. As far as I can tell, producer flow control doesn't work for topics. Unless I've missed something fundamental, I've included a test case that proves that. If you run the code you'll see the producer halt when PFC kicks in, and never st

Re: Programmatically changing Camel routes

2010-12-23 Thread Ivan L
Johan, Thank you. How do I get hold of the CamelContext instance that is defined in the ActiveMQ configuration. I looked at StartAndStopRoutesTest.java and it creates a new CamelContext. Regards -- View this message in context: http://activemq.2283324.n4.nabble.com/Programmatically-changing-Ca

Re: Problem with Ajax API

2010-12-23 Thread stratio
Ok the client code works well with Chrome and Safari. It connects itself to the topic, gets the messages and make them visible. Instead when running with Firefox (any version) and Opera it doesn't work. I can see from the admin page of ActiveMQ that there's a consumer who dequeues the messages, h