Re: message clears from db if application or activemq restarts..

2011-05-02 Thread anilkapoor
I am using camel for routing & test Activemq i am testing by sending jms message - this is my junit test public class JmsTest extends CamelSpringTestSupport{ private static Logger logger = LoggerFactory.getLogger(JmsTest.class); @Test public void testJMS() { ArrayList listObj = n

message clears from db if application or activemq restarts..

2011-05-02 Thread anilkapoor
Can anyone explain me why my messages from ACTIVEMQ_MSGS table gets deleted. It happens everytime when i restart the activemq or whenever my application gets restarted. http://activemq.apache.org/schema/core"; brokerName="localhost" persistent="true" dataDirectory="${activemq.base}/data" >

Re: Sample failover transport configuration of activemq

2011-05-02 Thread agujral
Hi , Thanks for the reply. I understand that the values of the parameters mentioned in http://activemq.apache.org/failover-transport-reference.html varies from application to application but can someone send me a sample configuration file which covers all the scenarios I mentioned in my first

Re: Sample failover transport configuration of activemq

2011-05-02 Thread Johan Edstrom
http://activemq.apache.org/failover-transport-reference.html On May 2, 2011, at 12:59 PM, agujral wrote: > Hi All, > I am planning to use failover transport in activemq such that > following scenarios are covered: > a)When I specify multiple brokers activemq should be able to randomly sel

Sample failover transport configuration of activemq

2011-05-02 Thread agujral
Hi All, I am planning to use failover transport in activemq such that following scenarios are covered: a)When I specify multiple brokers activemq should be able to randomly select one of the brokers so that I can redistribute the load. b)Suppose I specify two brokers using failover transpo

Re: Messages stuck in queue

2011-05-02 Thread Martin C.
Hi, we are using prefetch=0 with Spring, works well, still we are seeing the same issue but for _non-persistent_ messages. (With prefetch=0 and with prefetch=1.) Any ideas if this could correlate to the issues mentioned here? As an interesting side-effect, the consumption starts again if we delet

Re: Messages stuck in queue

2011-05-02 Thread Heimi
Unfortunately, we do not use selectors. Just a plain Queue where a producer sends Text Messages and a consumer is listening to the queue to consume the messages. Nothing advanced on my site. And I see no error messages in my logfile. Just the wrong behaviour . Really Annoying. -- View this messa

Re: Messages stuck in queue

2011-05-02 Thread lernen.2007
The Testcase what I get from you can reproduce the problem. -- View this message in context: http://activemq.2283324.n4.nabble.com/Messages-stuck-in-queue-tp3244342p3489873.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Error with ActiveMQ 5.5 and websocket over Stomp client

2011-05-02 Thread stratio
I just tried the 5.6 SNAPSHOT and the problem is gone :) Thank you Timothy, have a nice day. -- View this message in context: http://activemq.2283324.n4.nabble.com/Error-with-ActiveMQ-5-5-and-websocket-over-Stomp-client-tp3480420p3489788.html Sent from the ActiveMQ - User mailing list archive at

Re: How to send a textMessage to an exising queue (destination)

2011-05-02 Thread Aleksandar Ivanisevic
mruan writes: > Thanks Aleksandar! Tim suggested similar solution yesterday, and I tried ... > I'll try again. Now I hope that you guys understand what I want, and do you > still think that nobody needs to do like this? Unfortunately, very few programmers think like you do. If they mistype a nam

Re: Error with ActiveMQ 5.5 and websocket over Stomp client

2011-05-02 Thread Timothy Bish
On Mon, 2011-05-02 at 02:04 -0700, stratio wrote: > Hi Alex, first of all thanks for the help > > I ran some other tests and I have different results depending on the data > i'm consuming on the topic. > > For example if i send a message like this : > > > >Try this > >

Question on consumers

2011-05-02 Thread Don Santillan
Hello, I have a basic question about message consumers that I really need to confirm that my understanding is correct. Do message consumers run in different threads? Suppose I have 5 consumers assigned to a queue. Are these consumers independent with each other and are running in different t

Re: Error with ActiveMQ 5.5 and websocket over Stomp client

2011-05-02 Thread stratio
Hi Alex, first of all thanks for the help I ran some other tests and I have different results depending on the data i'm consuming on the topic. For example if i send a message like this : Try this I get the result correctly. Instead if i send a message like this :